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

public Class ShouldNotExist

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 does not exist failed.
Authors
Yvonne Wang, Francis Galiegue

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
ShouldNotExist(final Path actual)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldNotExist.

public static ErrorMessageFactory
shouldNotExist(final Path actual)

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

Field Detail

FILE_SHOULD_NOT_EXISTback to summary
public static final String FILE_SHOULD_NOT_EXIST
Annotations
@VisibleForTesting
PATH_SHOULD_NOT_EXISTback to summary
public static final String PATH_SHOULD_NOT_EXIST
Annotations
@VisibleForTesting

Constructor Detail

ShouldNotExistback to summary
private ShouldNotExist(File actual)
ShouldNotExistback to summary
private ShouldNotExist(final Path actual)

Method Detail

shouldNotExistback to summary
public static ErrorMessageFactory shouldNotExist(File actual)

Creates a new ShouldNotExist.

Parameters
actual:File

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotExistback to summary
public static ErrorMessageFactory shouldNotExist(final Path actual)