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.- Author:
- Alex Ruiz
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
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
-
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
-