public final class ObjectArraySubject<T> extends AbstractArraySubject<ObjectArraySubject<T>,T[]>
Object[]
and more generically T[]
.failureStrategy
Modifier and Type | Method and Description |
---|---|
IterableSubject |
asList() |
void |
isEqualTo(Object expected)
A proposition that the provided Object[] is an array of the same length and type, and contains
elements such that each element in
expected is equal to each element in the subject,
and in the same position. |
void |
isNotEqualTo(Object expected)
Fails if the subject is equal to the given object.
|
protected List<?> |
listRepresentation()
Returns a List representation suitable for displaying in a string.
|
protected String |
underlyingType() |
actualCustomStringRepresentation, hasLength, isEmpty, isNotEmpty
actual, actualAsString, check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
protected String underlyingType()
protected List<?> listRepresentation()
AbstractArraySubject
public void isEqualTo(Object expected)
expected
is equal to each element in the subject,
and in the same position.isEqualTo
in class Subject<ObjectArraySubject<T>,T[]>
public void isNotEqualTo(Object expected)
Subject
Subject.isEqualTo(java.lang.Object)
method.isNotEqualTo
in class Subject<ObjectArraySubject<T>,T[]>
public IterableSubject asList()
Copyright © 2016. All Rights Reserved.