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