Package com.google.common.truth
Class PrimitiveBooleanArraySubject
- java.lang.Object
-
- com.google.common.truth.Subject
-
- com.google.common.truth.PrimitiveBooleanArraySubject
-
public final class PrimitiveBooleanArraySubject extends Subject
A Subject forboolean[]
.- 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:
java.lang.IllegalArgumentException
- iflength < 0
-
-