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 aFileshould not have a parent.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILE_HAS_PARENTstatic java.lang.StringPATH_HAS_PARENT-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldHaveNoParent(java.io.File actual)privateShouldHaveNoParent(java.nio.file.Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShouldHaveNoParentshouldHaveNoParent(java.io.File actual)Creates a new.ShouldHaveNoParentstatic ShouldHaveNoParentshouldHaveNoParent(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 new.ShouldHaveNoParent- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldHaveNoParent
public static ShouldHaveNoParent shouldHaveNoParent(java.nio.file.Path actual)
-
-