public class ObjectArraySubject<T> extends AbstractArraySubject<ObjectArraySubject<T>,T[]>
Object[] and more generically T[].Subject.HasFieldfailureStrategy| Constructor and Description |
|---|
ObjectArraySubject(FailureStrategy failureStrategy,
T[] o) |
| Modifier and Type | Method and Description |
|---|---|
ListSubject<?,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) |
protected List<T> |
listRepresentation() |
protected String |
underlyingType() |
failWithBadType, getDisplaySubject, namedcheck, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isNotA, isNotNull, isNull, labeledpublic ObjectArraySubject(FailureStrategy failureStrategy, T[] o)
protected String underlyingType()
underlyingType in class AbstractArraySubject<ObjectArraySubject<T>,T[]>protected List<T> listRepresentation()
listRepresentation in class AbstractArraySubject<ObjectArraySubject<T>,T[]>public void isEqualTo(Object expected)
expected is equal to each element
in the subject, and in the same position.isEqualTo in class Subject<AbstractArraySubject<ObjectArraySubject<T>,T[]>,T[]>public void isNotEqualTo(Object expected)
isNotEqualTo in class Subject<AbstractArraySubject<ObjectArraySubject<T>,T[]>,T[]>public ListSubject<?,T,List<T>> asList()
Copyright © 2016. All rights reserved.