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 aFile
orPath
does not exist failed.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_SHOULD_NOT_EXIST
static java.lang.String
PATH_SHOULD_NOT_EXIST
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldNotExist(java.io.File actual)
private
ShouldNotExist(java.nio.file.Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldExistNoFollowLinks(java.nio.file.Path actual)
static ErrorMessageFactory
shouldNotExist(java.io.File actual)
Creates a new
.ShouldNotExist
static ErrorMessageFactory
shouldNotExist(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)
-
-