Package org.assertj.core.error
Class ShouldNotExist
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotExist
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotExist extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aFileorPathdoes not exist failed.- Author:
- Yvonne Wang, Francis Galiegue
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_SHOULD_NOT_EXISTstatic StringPATH_SHOULD_NOT_EXISTstatic StringPATH_SHOULD_NOT_EXIST_NO_FOLLOW_LINKS-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldNotExist(File actual)privateShouldNotExist(Path actual)privateShouldNotExist(Path actual, boolean followLinks)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldExistNoFollowLinks(Path actual)static ErrorMessageFactoryshouldNotExist(File actual)Creates a new.ShouldNotExiststatic ErrorMessageFactoryshouldNotExist(Path actual)-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
PATH_SHOULD_NOT_EXIST
public static final String PATH_SHOULD_NOT_EXIST
- See Also:
- Constant Field Values
-
FILE_SHOULD_NOT_EXIST
public static final String FILE_SHOULD_NOT_EXIST
- See Also:
- Constant Field Values
-
PATH_SHOULD_NOT_EXIST_NO_FOLLOW_LINKS
public static final String PATH_SHOULD_NOT_EXIST_NO_FOLLOW_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldNotExist
public static ErrorMessageFactory shouldNotExist(File actual)
Creates a new.ShouldNotExist- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotExist
public static ErrorMessageFactory shouldNotExist(Path actual)
-
shouldExistNoFollowLinks
public static ErrorMessageFactory shouldExistNoFollowLinks(Path actual)
-
-