org.truth0.subjects
Class PrimitiveIntArraySubject
java.lang.Object
org.truth0.subjects.Subject<AbstractArraySubject<T>,T>
org.truth0.subjects.AbstractArraySubject<int[]>
org.truth0.subjects.PrimitiveIntArraySubject
@GwtCompatible
public class PrimitiveIntArraySubject
- extends AbstractArraySubject<int[]>
A Subject to handle testing propositions for int[]
.
- 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 |
PrimitiveIntArraySubject
public PrimitiveIntArraySubject(FailureStrategy failureStrategy,
int[] o)
underlyingType
protected String underlyingType()
- Specified by:
underlyingType
in class AbstractArraySubject<int[]>
listRepresentation
protected List<Integer> listRepresentation()
- Specified by:
listRepresentation
in class AbstractArraySubject<int[]>
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<int[]>,int[]>
isNotEqualTo
public void isNotEqualTo(Object expected)
- Overrides:
isNotEqualTo
in class Subject<AbstractArraySubject<int[]>,int[]>
asList
public ListSubject<?,Integer,List<Integer>> asList()
Copyright © 2014. All rights reserved.