Package org.assertj.core.error
Class ShouldHaveNoParent
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveNoParent
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message when a
File
should not have a parent.-
Field Summary
FieldsFields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldHaveNoParent
(File actual) private
ShouldHaveNoParent
(Path actual) -
Method Summary
Modifier and TypeMethodDescriptionstatic ShouldHaveNoParent
shouldHaveNoParent
(File actual) Creates a new
.ShouldHaveNoParent
static ShouldHaveNoParent
shouldHaveNoParent
(Path actual) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Field Details
-
PATH_HAS_PARENT
- See Also:
-
FILE_HAS_PARENT
- See Also:
-
-
Constructor Details
-
ShouldHaveNoParent
-
ShouldHaveNoParent
-
-
Method Details
-
shouldHaveNoParent
Creates a new
.ShouldHaveNoParent
- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldHaveNoParent
-