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