Package org.assertj.core.error
Class ShouldContainOnlyNulls
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainOnlyNulls
- All Implemented Interfaces:
ErrorMessageFactory
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShouldContainOnlyNulls(Object actual, ShouldContainOnlyNulls.ErrorType errorType, Iterable<?> notExpected) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringdescribe(ShouldContainOnlyNulls.ErrorType errorType) static ErrorMessageFactoryshouldContainOnlyNulls(Object actual) Creates a new.ShouldContainOnlyNullsstatic ErrorMessageFactoryshouldContainOnlyNulls(Object actual, Iterable<?> nonNullElements) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldContainOnlyNulls
private ShouldContainOnlyNulls(Object actual, ShouldContainOnlyNulls.ErrorType errorType, Iterable<?> notExpected)
-
-
Method Details
-
shouldContainOnlyNulls
Creates a new.ShouldContainOnlyNulls- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldContainOnlyNulls
public static ErrorMessageFactory shouldContainOnlyNulls(Object actual, Iterable<?> nonNullElements) -
describe
-