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

public Class ShouldBeEmpty

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.io.File, java.nio.file.Path

Creates an error message indicating that an assertion that verifies a group of elements is empty failed. A group of elements can be a collection, an array, a String, a File or a Path.
Author
Alex Ruiz

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldBeEmpty(String format, Object... arguments)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeEmpty
(Object
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeEmpty.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeEmpty
(File
the actual file in the failed assertion.
actual
)

Creates a new ShouldBeEmpty.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeEmpty
(Path
the actual path in the failed assertion.
actual
)

Creates a new ShouldBeEmpty.

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

Constructor Detail

ShouldBeEmptyback to summary
private ShouldBeEmpty(String format, Object... arguments)

Method Detail

shouldBeEmptyback to summary
public static ErrorMessageFactory shouldBeEmpty(Object actual)

Creates a new ShouldBeEmpty.

Parameters
actual:Object

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeEmptyback to summary
public static ErrorMessageFactory shouldBeEmpty(File actual)

Creates a new ShouldBeEmpty.

Parameters
actual:File

the actual file in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeEmptyback to summary
public static ErrorMessageFactory shouldBeEmpty(Path actual)

Creates a new ShouldBeEmpty.

Parameters
actual:Path

the actual path in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.