com.google.common.truth
Class PrimitiveLongArraySubject

java.lang.Object
  extended by com.google.common.truth.Subject<AbstractArraySubject<S,T>,T>
      extended by com.google.common.truth.AbstractArraySubject<PrimitiveLongArraySubject,long[]>
          extended by com.google.common.truth.PrimitiveLongArraySubject

public class PrimitiveLongArraySubject
extends AbstractArraySubject<PrimitiveLongArraySubject,long[]>

A Subject to handle testing propositions for int[].

Author:
Christian Gruber ([email protected])

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
 
Constructor Summary
PrimitiveLongArraySubject(FailureStrategy failureStrategy, long[] o)
           
 
Method Summary
 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 in expected is equal to each element in the subject, and in the same position.
 void isNotEqualTo(Object expected)
           
protected  List<Long> listRepresentation()
           
protected  String underlyingType()
           
 
Methods inherited from class com.google.common.truth.AbstractArraySubject
failWithBadType, getDisplaySubject, named
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveLongArraySubject

public PrimitiveLongArraySubject(FailureStrategy failureStrategy,
                                 long[] o)
Method Detail

underlyingType

protected String underlyingType()
Specified by:
underlyingType in class AbstractArraySubject<PrimitiveLongArraySubject,long[]>

listRepresentation

protected List<Long> listRepresentation()
Specified by:
listRepresentation in class AbstractArraySubject<PrimitiveLongArraySubject,long[]>

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<PrimitiveLongArraySubject,long[]>,long[]>

isNotEqualTo

public void isNotEqualTo(Object expected)
Overrides:
isNotEqualTo in class Subject<AbstractArraySubject<PrimitiveLongArraySubject,long[]>,long[]>

asList

public ListSubject<?,Long,List<Long>> asList()


Copyright © 2014. All rights reserved.