Package org.assertj.core.error
Class ShouldExist
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldExist
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
File
or Path
exists
failed.- Author:
- Yvonne Wang
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldExist
(File actual) Creates a new
.ShouldExist
static ErrorMessageFactory
shouldExist
(Path actual) static ErrorMessageFactory
shouldExistNoFollowLinks
(Path actual) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Field Details
-
PATH_SHOULD_EXIST
- See Also:
-
PATH_SHOULD_EXIST_NO_FOLLOW_LINKS
- See Also:
-
FILE_SHOULD_EXIST
- See Also:
-
-
Method Details
-
shouldExist
Creates a new
.ShouldExist
- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldExist
-
shouldExistNoFollowLinks
-