Package org.fest.assertions.error
Class ShouldNotBeNull
java.lang.Object
org.fest.assertions.error.ShouldNotBeNull
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message that indicates an assertion that verifies that an object is not
null
failed.- Author:
- Alex Ruiz
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new error message as a result of a failed assertion.static ErrorMessageFactory
Returns the singleton instance of this class.
-
Method Details
-
shouldNotBeNull
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
create
Creates a new error message as a result of a failed assertion.- Specified by:
create
in interfaceErrorMessageFactory
- Parameters:
d
- the description of the failed assertion.- Returns:
- the created error message.
-