Package org.assertj.core.error
Class ShouldHaveParent
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveParent
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveParent extends BasicErrorMessageFactory
Creates an error message indicating that aFileshould have a parent.- Author:
- Jean-Christophe Gay
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_NO_PARENTstatic StringFILE_NOT_EXPECTED_PARENTstatic StringPATH_NO_PARENTstatic StringPATH_NOT_EXPECTED_PARENT-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldHaveParent(File actual, File expected)privateShouldHaveParent(File actual, File actualParent, File expected)privateShouldHaveParent(Path actual, Path expected)privateShouldHaveParent(Path actual, Path actualParent, Path expected)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShouldHaveParentshouldHaveParent(File actual, File expected)static ShouldHaveParentshouldHaveParent(Path actual, Path expected)static ShouldHaveParentshouldHaveParent(Path actual, Path actualParent, Path expected)-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
PATH_NO_PARENT
public static final String PATH_NO_PARENT
- See Also:
- Constant Field Values
-
PATH_NOT_EXPECTED_PARENT
public static final String PATH_NOT_EXPECTED_PARENT
- See Also:
- Constant Field Values
-
FILE_NO_PARENT
public static final String FILE_NO_PARENT
- See Also:
- Constant Field Values
-
FILE_NOT_EXPECTED_PARENT
public static final String FILE_NOT_EXPECTED_PARENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldHaveParent
public static ShouldHaveParent shouldHaveParent(File actual, File expected)
-
shouldHaveParent
public static ShouldHaveParent shouldHaveParent(Path actual, Path expected)
-
shouldHaveParent
public static ShouldHaveParent shouldHaveParent(Path actual, Path actualParent, Path expected)
-
-