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