Package org.assertj.core.error
Class ShouldNotBeEmpty
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBeEmpty
- All Implemented Interfaces:
ErrorMessageFactory
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
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
Returns the singleton instance of this class.static ErrorMessageFactory
shouldNotBeEmpty
(File actual) Creates a new
.ShouldNotBeEmpty
static ErrorMessageFactory
shouldNotBeEmpty
(Path actual) Creates a new
.ShouldNotBeEmpty
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotBeEmpty
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
shouldNotBeEmpty
Creates a new
.ShouldNotBeEmpty
- Parameters:
actual
- the actual file in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotBeEmpty
Creates a new
.ShouldNotBeEmpty
- Parameters:
actual
- the actual path in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-