org.assertj.core.error
Class ShouldHaveAtLeastOneElementOfType
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveAtLeastOneElementOfType
- All Implemented Interfaces:
- ErrorMessageFactory
public class ShouldHaveAtLeastOneElementOfType
- extends BasicErrorMessageFactory
Creates an error message indicating that a group does not have an element of the given type.
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
.
Copyright © 2013–2015 AssertJ. All rights reserved.