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.Subject
Subject.Factory<SubjectT extends Subject,ActualT>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterableSubject
asList()
void
hasLength(int length)
Fails if the array does not have the given length.void
isEmpty()
Fails if the array is not empty (i.e.void
isNotEmpty()
Fails if the array is empty (i.e.-
Methods inherited from class com.google.common.truth.Subject
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
-
-
-
-
Method Detail
-
asList
public IterableSubject asList()
-
isEmpty
public final void isEmpty()
Fails if the array is not empty (i.e.array.length > 0
).
-
isNotEmpty
public final void isNotEmpty()
Fails if the array is empty (i.e.array.length == 0
).
-
hasLength
public final void hasLength(int length)
Fails if the array does not have the given length.- Throws:
IllegalArgumentException
- iflength < 0
-
-