Package org.fest.assertions.error
Class ShouldNotBeNull
- java.lang.Object
-
- org.fest.assertions.error.ShouldNotBeNull
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeNull extends java.lang.Object implements ErrorMessageFactory
Creates an error message that indicates an assertion that verifies that an object is notnull
failed.- Author:
- Alex Ruiz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
create(Description d)
Creates a new error message as a result of a failed assertion.static ErrorMessageFactory
shouldNotBeNull()
Returns the singleton instance of this class.
-
-
-
Method Detail
-
shouldNotBeNull
public static ErrorMessageFactory shouldNotBeNull()
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:
create
in interfaceErrorMessageFactory
- Parameters:
d
- the description of the failed assertion.- Returns:
- the created error message.
-
-