Package org.assertj.core.error
Class ShouldHaveAtLeastOneElementOfType
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveAtLeastOneElementOfType
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that a group does not have an element of the given type.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionshouldHaveAtLeastOneElementOfType
(Object actual, Class<?> expectedType) Creates a new
.ShouldHaveAtLeastOneElementOfType
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveAtLeastOneElementOfType
public static ShouldHaveAtLeastOneElementOfType shouldHaveAtLeastOneElementOfType(Object actual, Class<?> expectedType) Creates a new
.ShouldHaveAtLeastOneElementOfType
- Parameters:
actual
- array or IterableexpectedType
- the expected type of one element at least- Returns:
- the created
ErrorMessageFactory
.
-