public class ShouldHaveOnlyElementsOfType extends BasicErrorMessageFactory
arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldHaveOnlyElementsOfType(java.lang.Object actual,
java.lang.Class<?> expectedType,
java.lang.Class<?> unexpectedType) |
| Modifier and Type | Method and Description |
|---|---|
static ShouldHaveOnlyElementsOfType |
shouldHaveOnlyElementsOfType(java.lang.Object actual,
java.lang.Class<?> expectedType,
java.lang.Class<?> unexpectedType)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldHaveOnlyElementsOfType(java.lang.Object actual,
java.lang.Class<?> expectedType,
java.lang.Class<?> unexpectedType)
public static ShouldHaveOnlyElementsOfType shouldHaveOnlyElementsOfType(java.lang.Object actual, java.lang.Class<?> expectedType, java.lang.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.