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

public Class ShouldContainOnlyNulls

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
org.assertj.core.error.ShouldContainOnlyNulls.ErrorType.EMPTY, .ShouldContainOnlyNulls.ErrorType.NON_NULL_ELEMENTS

Creates an error message indicating that an assertion that verifies a group of elements contains only null elements failed. A group of elements can be a collection or an array.
Author
Billy Yuan

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldContainOnlyNulls
(Object
the actual value in the failed assertion.
actual
)

Creates a new ShouldContainOnlyNulls.

public static ErrorMessageFactory
shouldContainOnlyNulls(Object actual, Iterable<?> nonNullElements)

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

Constructor Detail

ShouldContainOnlyNullsback to summary
private ShouldContainOnlyNulls(Object actual, ShouldContainOnlyNulls.ErrorType errorType, Iterable<?> notExpected)

Method Detail

describeback to summary
private static String describe(ShouldContainOnlyNulls.ErrorType errorType)
shouldContainOnlyNullsback to summary
public static ErrorMessageFactory shouldContainOnlyNulls(Object actual)

Creates a new ShouldContainOnlyNulls.

Parameters
actual:Object

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldContainOnlyNullsback to summary
public static ErrorMessageFactory shouldContainOnlyNulls(Object actual, Iterable<?> nonNullElements)
org.assertj.core.error back to summary

public final Enum ShouldContainOnlyNulls.ErrorType

extends Enum<ShouldContainOnlyNulls.ErrorType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ShouldContainOnlyNulls.ErrorType
public static final ShouldContainOnlyNulls.ErrorType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ShouldContainOnlyNulls.ErrorType
public static ShouldContainOnlyNulls.ErrorType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EMPTYback to summary
public static final ShouldContainOnlyNulls.ErrorType EMPTY
NON_NULL_ELEMENTSback to summary
public static final ShouldContainOnlyNulls.ErrorType NON_NULL_ELEMENTS

Constructor Detail

ErrorTypeback to summary
private ErrorType()

Method Detail

valueOfback to summary
public static ShouldContainOnlyNulls.ErrorType valueOf(String name)
valuesback to summary
public static ShouldContainOnlyNulls.ErrorType[] values()