public class ObjectArraySubject<T> extends AbstractArraySubject<ObjectArraySubject<T>,T[]>
Object[] and more generically T[].Subject.HasFieldfailureStrategy| Modifier and Type | Method | 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) |
Fails if the subject is equal to the given object.
|
protected List<T> |
listRepresentation() |
|
protected String |
underlyingType() |
getDisplaySubject, hasLength, isEmpty, isNotEmpty, namedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcheck, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isInstanceOf, isNotA, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeledprotected 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<AbstractArraySubject<ObjectArraySubject<T>,T[]>,T[]>public void isNotEqualTo(Object expected)
SubjectisNotEqualTo in class Subject<AbstractArraySubject<ObjectArraySubject<T>,T[]>,T[]>public ListSubject<?,T,List<T>> asList()
Copyright © 2019. All rights reserved.