Package org.fest.assertions.error
Class ShouldNotBeEmpty
- java.lang.Object
-
- org.fest.assertions.error.ShouldNotBeEmpty
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeEmpty extends java.lang.Object implements 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 or aString.- Author:
- Alex Ruiz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcreate(Description d)Creates a new error message as a result of a failed assertion.static ErrorMessageFactoryshouldNotBeEmpty()Returns the singleton instance of this class.
-
-
-
Method Detail
-
shouldNotBeEmpty
public static ErrorMessageFactory shouldNotBeEmpty()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
create
public java.lang.String create(Description d)
Creates a new error message as a result of a failed assertion.- Specified by:
createin interfaceErrorMessageFactory- Parameters:
d- the description of the failed assertion.- Returns:
- the created error message.
-
-