Package org.assertj.core.error
Class ShouldNotBeNull
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotBeNull
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeNull extends BasicErrorMessageFactory
Creates an error message that indicates an assertion that verifies that an object is notnull
failed.- Author:
- Alex Ruiz
-
-
Field Summary
Fields Modifier and Type Field Description private static ShouldNotBeNull
INSTANCE
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldNotBeNull(String label)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldNotBeNull()
Returns the default instance of this class.static ShouldNotBeNull
shouldNotBeNull(String label)
Create a instance specifying a label-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
INSTANCE
private static final ShouldNotBeNull INSTANCE
-
-
Constructor Detail
-
ShouldNotBeNull
private ShouldNotBeNull(String label)
-
-
Method Detail
-
shouldNotBeNull
public static ErrorMessageFactory shouldNotBeNull()
Returns the default instance of this class.- Returns:
- the default instance of this class.
-
shouldNotBeNull
public static ShouldNotBeNull shouldNotBeNull(String label)
Create a instance specifying a label- Parameters:
label
- of what should not be null- Returns:
- the new instance
-
-