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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILE_SHOULD_NOT_EXISTstatic java.lang.StringPATH_SHOULD_NOT_EXIST-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldNotExist(java.io.File actual)privateShouldNotExist(java.nio.file.Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldExistNoFollowLinks(java.nio.file.Path actual)static ErrorMessageFactoryshouldNotExist(java.io.File actual)Creates a new.ShouldNotExiststatic ErrorMessageFactoryshouldNotExist(java.nio.file.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 java.lang.String PATH_SHOULD_NOT_EXIST
- See Also:
- Constant Field Values
-
FILE_SHOULD_NOT_EXIST
public static final java.lang.String FILE_SHOULD_NOT_EXIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldNotExist
public static ErrorMessageFactory shouldNotExist(java.io.File actual)
Creates a new.ShouldNotExist- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotExist
public static ErrorMessageFactory shouldNotExist(java.nio.file.Path actual)
-
shouldExistNoFollowLinks
public static ErrorMessageFactory shouldExistNoFollowLinks(java.nio.file.Path actual)
-
-