Package org.assertj.core.error
Class ShouldHaveNoParent
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveNoParent
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveNoParent extends BasicErrorMessageFactory
Creates an error message when aFile
should not have a parent.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_HAS_PARENT
static java.lang.String
PATH_HAS_PARENT
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveNoParent(java.io.File actual)
private
ShouldHaveNoParent(java.nio.file.Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShouldHaveNoParent
shouldHaveNoParent(java.io.File actual)
Creates a newShouldHaveNoParent
.static ShouldHaveNoParent
shouldHaveNoParent(java.nio.file.Path actual)
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
PATH_HAS_PARENT
public static final java.lang.String PATH_HAS_PARENT
- See Also:
- Constant Field Values
-
FILE_HAS_PARENT
public static final java.lang.String FILE_HAS_PARENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldHaveNoParent
public static ShouldHaveNoParent shouldHaveNoParent(java.io.File actual)
Creates a newShouldHaveNoParent
.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldHaveNoParent
public static ShouldHaveNoParent shouldHaveNoParent(java.nio.file.Path actual)
-
-