public class ObjectArraySubject<T> extends AbstractArraySubject<ObjectArraySubject<T>,T[]>
Object[] and more generically T[].failureStrategy| Modifier and Type | Method and Description |
|---|---|
IterableSubject<?,T,List<T>> |
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<T> |
listRepresentation() |
protected String |
underlyingType() |
getDisplaySubject, hasLength, isEmpty, isNotEmpty, namedcheck, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hashCode, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAsprotected String underlyingType()
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)
SubjectSubject.isEqualTo(java.lang.Object) method.isNotEqualTo in class Subject<ObjectArraySubject<T>,T[]>public IterableSubject<?,T,List<T>> asList()
Copyright © 2015. All Rights Reserved.