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.- Author:
- Yvonne Wang, Francis Galiegue
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_SHOULD_NOT_EXIST
static 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(File actual)
private
ShouldNotExist(Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldExistNoFollowLinks(Path actual)
static ErrorMessageFactory
shouldNotExist(File actual)
Creates a new
.ShouldNotExist
static ErrorMessageFactory
shouldNotExist(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
-
-
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)
-
-