ErrorMessageFactory
public class ShouldHaveOnlyElementsOfType extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method | Description |
---|---|---|
static ShouldHaveOnlyElementsOfType |
shouldHaveOnlyElementsOfType(Object actual,
Class<?> expectedType,
Class<?> unexpectedType) |
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public 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–2019. All rights reserved.