Package org.assertj.core.error
Class ShouldNotBeNull
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBeNull
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message that indicates an assertion that verifies that an object is not
null
failed.-
Field Summary
FieldsFields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
Returns the default instance of this class.static ShouldNotBeNull
shouldNotBeNull
(String label) Create a instance specifying a labelMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ShouldNotBeNull
-
-
Method Details
-
shouldNotBeNull
Returns the default instance of this class.- Returns:
- the default instance of this class.
-
shouldNotBeNull
Create a instance specifying a label- Parameters:
label
- of what should not be null- Returns:
- the new instance
-