Package org.assertj.core.error
Class ShouldNotBeEmpty
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotBeEmpty
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeEmpty extends BasicErrorMessageFactory
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,String
or aFile
.- Author:
- Alex Ruiz
-
-
Field Summary
Fields Modifier and Type Field Description private static ShouldNotBeEmpty
INSTANCE
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldNotBeEmpty(String format, Object... arguments)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldNotBeEmpty()
Returns the singleton instance of this class.static ErrorMessageFactory
shouldNotBeEmpty(File actual)
Creates a new
.ShouldNotBeEmpty
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
INSTANCE
private static final ShouldNotBeEmpty INSTANCE
-
-
Method Detail
-
shouldNotBeEmpty
public static ErrorMessageFactory shouldNotBeEmpty()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
shouldNotBeEmpty
public static ErrorMessageFactory shouldNotBeEmpty(File actual)
Creates a new
.ShouldNotBeEmpty
- Parameters:
actual
- the actual file in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
-