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.- Author:
- Jean-Christophe Gay
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_HAS_PARENTstatic StringPATH_HAS_PARENT-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldHaveNoParent(File actual)privateShouldHaveNoParent(Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShouldHaveNoParentshouldHaveNoParent(File actual)Creates a new.ShouldHaveNoParentstatic ShouldHaveNoParentshouldHaveNoParent(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 String PATH_HAS_PARENT
- See Also:
- Constant Field Values
-
FILE_HAS_PARENT
public static final String FILE_HAS_PARENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldHaveNoParent
public static ShouldHaveNoParent shouldHaveNoParent(File actual)
Creates a new.ShouldHaveNoParent- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldHaveNoParent
public static ShouldHaveNoParent shouldHaveNoParent(Path actual)
-
-