Package org.assertj.core.error
Class ShouldContainOnlyNulls
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldContainOnlyNulls
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldContainOnlyNulls extends BasicErrorMessageFactory
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
Nested Classes Modifier and Type Class Description static class
ShouldContainOnlyNulls.ErrorType
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldContainOnlyNulls(Object actual, ShouldContainOnlyNulls.ErrorType errorType, Iterable<?> notExpected)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static String
describe(ShouldContainOnlyNulls.ErrorType errorType)
static 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
-
-
-
-
Constructor Detail
-
ShouldContainOnlyNulls
private ShouldContainOnlyNulls(Object actual, ShouldContainOnlyNulls.ErrorType errorType, Iterable<?> notExpected)
-
-
Method Detail
-
shouldContainOnlyNulls
public static ErrorMessageFactory shouldContainOnlyNulls(Object actual)
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
private static String describe(ShouldContainOnlyNulls.ErrorType errorType)
-
-