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.
- Author:
- Billy Yuan
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldContainOnlyNulls
(Object actual) Creates a new
.ShouldContainOnlyNulls
static ErrorMessageFactory
shouldContainOnlyNulls
(Object actual, Iterable<?> nonNullElements) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
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)
-