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

public Class ShouldNotBeEmpty

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 not empty failed. A group of elements can be a collection, an array, a String, a File or a Path.
Author
Alex Ruiz

Field Summary

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the singleton instance of this class.
shouldNotBeEmpty
()

Returns the singleton instance of this class.

public static ErrorMessageFactory

Returns:

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

Creates a new ShouldNotBeEmpty.

public static ErrorMessageFactory

Returns:

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

Creates a new ShouldNotBeEmpty.

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

Field Detail

INSTANCEback to summary
private static final ShouldNotBeEmpty INSTANCE

Constructor Detail

ShouldNotBeEmptyback to summary
private ShouldNotBeEmpty(String format, Object... arguments)

Method Detail

shouldNotBeEmptyback to summary
public static ErrorMessageFactory shouldNotBeEmpty()

Returns the singleton instance of this class.

Returns:ErrorMessageFactory

the singleton instance of this class.

shouldNotBeEmptyback to summary
public static ErrorMessageFactory shouldNotBeEmpty(File actual)

Creates a new ShouldNotBeEmpty.

Parameters
actual:File

the actual file in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeEmptyback to summary
public static ErrorMessageFactory shouldNotBeEmpty(Path actual)

Creates a new ShouldNotBeEmpty.

Parameters
actual:Path

the actual path in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.