Package org.assertj.core.error
Class ShouldExist
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldExist
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldExist extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aFileorPathexists failed.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILE_SHOULD_EXISTstatic java.lang.StringPATH_SHOULD_EXISTstatic java.lang.StringPATH_SHOULD_EXIST_NO_FOLLOW_LINKS-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldExist(java.io.File actual)privateShouldExist(java.nio.file.Path actual, boolean followLinks)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldExist(java.io.File actual)Creates a new.ShouldExiststatic ErrorMessageFactoryshouldExist(java.nio.file.Path actual)static ErrorMessageFactoryshouldExistNoFollowLinks(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_EXIST
public static final java.lang.String PATH_SHOULD_EXIST
- See Also:
- Constant Field Values
-
PATH_SHOULD_EXIST_NO_FOLLOW_LINKS
public static final java.lang.String PATH_SHOULD_EXIST_NO_FOLLOW_LINKS
- See Also:
- Constant Field Values
-
FILE_SHOULD_EXIST
public static final java.lang.String FILE_SHOULD_EXIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldExist
public static ErrorMessageFactory shouldExist(java.io.File actual)
Creates a new.ShouldExist- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldExist
public static ErrorMessageFactory shouldExist(java.nio.file.Path actual)
-
shouldExistNoFollowLinks
public static ErrorMessageFactory shouldExistNoFollowLinks(java.nio.file.Path actual)
-
-