public class ShouldOnlyHaveElementsOfTypes extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ShouldOnlyHaveElementsOfTypes |
shouldOnlyHaveElementsOfTypes(Object actual,
Class<?>[] types,
Iterable<?> dismatches)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ShouldOnlyHaveElementsOfTypes shouldOnlyHaveElementsOfTypes(Object actual, Class<?>[] types, Iterable<?> dismatches)
ShouldOnlyHaveElementsOfTypes.actual - the object value in the failed assertion.types - the expected classes and interfaces.dismatches - elements that are not an instance of one of the given types.ErrorMessageFactory.Copyright © 2013–2018 AssertJ. All rights reserved.