Package com.google.common.truth
Class PrimitiveLongArraySubject
- java.lang.Object
-
- com.google.common.truth.Subject<AbstractArraySubject<S,T>,T>
-
- com.google.common.truth.AbstractArraySubject<PrimitiveLongArraySubject,long[]>
-
- com.google.common.truth.PrimitiveLongArraySubject
-
public class PrimitiveLongArraySubject extends AbstractArraySubject<PrimitiveLongArraySubject,long[]>
A Subject to handle testing propositions forint[]
.- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListSubject<?,Long,List<Long>>
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 inexpected
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<Long>
listRepresentation()
protected String
underlyingType()
-
Methods inherited from class com.google.common.truth.AbstractArraySubject
getDisplaySubject, hasLength, isEmpty, isNotEmpty, named
-
Methods 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 Detail
-
underlyingType
protected String underlyingType()
-
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 inexpected
is equal to each element in the subject, and in the same position.- Overrides:
isEqualTo
in classSubject<AbstractArraySubject<PrimitiveLongArraySubject,long[]>,long[]>
-
isNotEqualTo
public void isNotEqualTo(Object expected)
Description copied from class:Subject
Fails if the subject is equal to the given object.- Overrides:
isNotEqualTo
in classSubject<AbstractArraySubject<PrimitiveLongArraySubject,long[]>,long[]>
-
asList
public ListSubject<?,Long,List<Long>> asList()
-
-