org.truth0.subjects
Class ObjectArraySubject<T>
java.lang.Object
org.truth0.subjects.Subject<org.truth0.subjects.AbstractArraySubject<T>,T>
org.truth0.subjects.ObjectArraySubject<T>
@GwtCompatible
public class ObjectArraySubject<T>
- extends Subject<org.truth0.subjects.AbstractArraySubject<T>,T>
A Subject to handle testing propositions for Object[]
and more generically T[]
.
- Author:
- Christian Gruber (cgruber@israfil.net)
Methods inherited from class org.truth0.subjects.Subject |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hashCode, internalCustomName, is, isA, isNotA, isNotNull, isNull, labeled, named |
ObjectArraySubject
public ObjectArraySubject(FailureStrategy failureStrategy,
T[] o)
underlyingType
protected String underlyingType()
listRepresentation
protected List<T> listRepresentation()
isEqualTo
public 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.
- Overrides:
isEqualTo
in class Subject<org.truth0.subjects.AbstractArraySubject<T[]>,T[]>
isNotEqualTo
public void isNotEqualTo(Object expected)
- Overrides:
isNotEqualTo
in class Subject<org.truth0.subjects.AbstractArraySubject<T[]>,T[]>
asList
public ListSubject<?,T,List<T>> asList()
getDisplaySubject
protected String getDisplaySubject()
- Overrides:
getDisplaySubject
in class Subject<org.truth0.subjects.AbstractArraySubject<T>,T>
failWithBadType
protected void failWithBadType(Object expected)
Copyright © 2014. All rights reserved.