Package com.google.common.truth
Class PrimitiveIntArraySubject
- java.lang.Object
- 
- com.google.common.truth.Subject
- 
- com.google.common.truth.PrimitiveIntArraySubject
 
 
- 
 public final class PrimitiveIntArraySubject extends Subject A Subject forint[].- Author:
- Christian Gruber (cgruber@israfil.net)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.google.common.truth.SubjectSubject.Factory<SubjectT extends Subject,ActualT>
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IterableSubjectasList()voidhasLength(int length)Fails if the array does not have the given length.voidisEmpty()Fails if the array is not empty (i.e.voidisNotEmpty()Fails if the array is empty (i.e.- 
Methods inherited from class com.google.common.truth.SubjectactualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
 
- 
 
- 
- 
- 
Method Detail- 
asListpublic IterableSubject asList() 
 - 
isEmptypublic final void isEmpty() Fails if the array is not empty (i.e.array.length > 0).
 - 
isNotEmptypublic final void isNotEmpty() Fails if the array is empty (i.e.array.length == 0).
 - 
hasLengthpublic final void hasLength(int length) Fails if the array does not have the given length.- Throws:
- IllegalArgumentException- if- length < 0
 
 
- 
 
-