public class ObjectArraySubject<T> extends AbstractArraySubject<ObjectArraySubject<T>,T[]>
Object[]
and more generically T[]
.Subject.HasField
failureStrategy
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, named
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isNotA, isNotNull, isNull, labeled
public 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 © 2015. All rights reserved.