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.- Author:
- Yvonne Wang
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_SHOULD_EXISTstatic StringPATH_SHOULD_EXISTstatic 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(File actual)privateShouldExist(Path actual, boolean followLinks)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldExist(File actual)Creates a new.ShouldExiststatic ErrorMessageFactoryshouldExist(Path actual)static ErrorMessageFactoryshouldExistNoFollowLinks(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 String PATH_SHOULD_EXIST
- See Also:
- Constant Field Values
-
PATH_SHOULD_EXIST_NO_FOLLOW_LINKS
public static final String PATH_SHOULD_EXIST_NO_FOLLOW_LINKS
- See Also:
- Constant Field Values
-
FILE_SHOULD_EXIST
public static final String FILE_SHOULD_EXIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldExist
public static ErrorMessageFactory shouldExist(File actual)
Creates a new.ShouldExist- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldExist
public static ErrorMessageFactory shouldExist(Path actual)
-
shouldExistNoFollowLinks
public static ErrorMessageFactory shouldExistNoFollowLinks(Path actual)
-
-