public class ShouldHaveOnlyElementsOfType extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ShouldHaveOnlyElementsOfType |
shouldHaveOnlyElementsOfType(Object actual,
Class<?> expectedType,
Class<?> unexpectedType)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ShouldHaveOnlyElementsOfType shouldHaveOnlyElementsOfType(Object actual, Class<?> expectedType, Class<?> unexpectedType)
ShouldHaveOnlyElementsOfType.actual - array or IterableexpectedType - the expected type of all elementsunexpectedType - the type of one element that is not expectedType or it subclasses.ErrorMessageFactory.Copyright © 2014–2018 AssertJ. All rights reserved.