Package com.google.common.truth
Class PrimitiveIntArraySubject
java.lang.Object
com.google.common.truth.Subject<AbstractArraySubject<PrimitiveIntArraySubject,int[]>,int[]>
com.google.common.truth.AbstractArraySubject<PrimitiveIntArraySubject,int[]>
com.google.common.truth.PrimitiveIntArraySubject
A Subject to handle testing propositions for
int[].- Author:
- Christian Gruber (cgruber@israfil.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.HasField -
Field Summary
Fields inherited from class com.google.common.truth.Subject
failureStrategy -
Method Summary
Modifier and TypeMethodDescriptionasList()voidA proposition that the provided Object[] is an array of the same length and type, and contains elements such that each element inexpectedis equal to each element in the subject, and in the same position.voidisNotEqualTo(Object expected) Fails if the subject is equal to the given object.protected StringMethods inherited from class com.google.common.truth.AbstractArraySubject
getDisplaySubject, hasLength, isEmpty, isNotEmpty, namedMethods inherited from class com.google.common.truth.Subject
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isInstanceOf, isNotA, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled
-
Method Details
-
underlyingType
-
listRepresentation
-
isEqualTo
A proposition that the provided Object[] is an array of the same length and type, and contains elements such that each element inexpectedis equal to each element in the subject, and in the same position.- Overrides:
isEqualToin classSubject<AbstractArraySubject<PrimitiveIntArraySubject,int[]>, int[]>
-
isNotEqualTo
Description copied from class:SubjectFails if the subject is equal to the given object.- Overrides:
isNotEqualToin classSubject<AbstractArraySubject<PrimitiveIntArraySubject,int[]>, int[]>
-
asList
-