Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldNotBeNull

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
java.lang.String.format

Creates an error message that indicates an assertion that verifies that an object is not null failed.
Author
Alex Ruiz

Field Summary

Modifier and TypeField and Description
private static final ShouldNotBeNull
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the default instance of this class.
shouldNotBeNull
()

Returns the default instance of this class.

public static ShouldNotBeNull

Returns:

the new instance
shouldNotBeNull
(String
of what should not be null
label
)

Create a instance specifying a label

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Field Detail

INSTANCEback to summary
private static final ShouldNotBeNull INSTANCE

Constructor Detail

ShouldNotBeNullback to summary
private ShouldNotBeNull(String label)

Method Detail

shouldNotBeNullback to summary
public static ErrorMessageFactory shouldNotBeNull()

Returns the default instance of this class.

Returns:ErrorMessageFactory

the default instance of this class.

shouldNotBeNullback to summary
public static ShouldNotBeNull shouldNotBeNull(String label)

Create a instance specifying a label

Parameters
label:String

of what should not be null

Returns:ShouldNotBeNull

the new instance