Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldExist

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.io.File, java.nio.file.Path, org.assertj.core.util.VisibleForTesting

Creates an error message indicating that an assertion that verifies that a File or Path exists failed.
Author
Yvonne Wang

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldExist(File actual)

private
ShouldExist(final Path actual, boolean followLinks)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldExist
(File
the actual value in the failed assertion.
actual
)

Creates a new ShouldExist.

public static ErrorMessageFactory
shouldExist(final Path actual)

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Field Detail

FILE_SHOULD_EXISTback to summary
public static final String FILE_SHOULD_EXIST
PATH_SHOULD_EXISTback to summary
public static final String PATH_SHOULD_EXIST
Annotations
@VisibleForTesting

Constructor Detail

ShouldExistback to summary
private ShouldExist(File actual)
ShouldExistback to summary
private ShouldExist(final Path actual, boolean followLinks)

Method Detail

shouldExistback to summary
public static ErrorMessageFactory shouldExist(File actual)

Creates a new ShouldExist.

Parameters
actual:File

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldExistback to summary
public static ErrorMessageFactory shouldExist(final Path actual)