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 aFile
should have a parent.- Author:
- Jean-Christophe Gay
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_NO_PARENT
static String
FILE_NOT_EXPECTED_PARENT
static String
PATH_NO_PARENT
static String
PATH_NOT_EXPECTED_PARENT
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveParent(File actual, File expected)
private
ShouldHaveParent(File actual, File actualParent, File expected)
private
ShouldHaveParent(Path actual, Path expected)
private
ShouldHaveParent(Path actual, Path actualParent, Path expected)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShouldHaveParent
shouldHaveParent(File actual, File expected)
static ShouldHaveParent
shouldHaveParent(Path actual, Path expected)
static ShouldHaveParent
shouldHaveParent(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)
-
-