Class PrimitiveShortArraySubject
java.lang.Object
com.google.common.truth.Subject
com.google.common.truth.PrimitiveShortArraySubject
A subject for
short[]
.- 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
Modifier and TypeMethodDescriptionasList()
final void
hasLength
(int length) Checks that the actual array has the given length.final void
isEmpty()
Checks that the actual array is empty (i.e., thatarray.length == 0
).final void
Checks that the actual array is not empty (i.e., thatarray.length > 0
).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 Details
-
asList
-
isEmpty
public final void isEmpty()Checks that the actual array is empty (i.e., thatarray.length == 0
). -
isNotEmpty
public final void isNotEmpty()Checks that the actual array is not empty (i.e., thatarray.length > 0
). -
hasLength
public final void hasLength(int length) Checks that the actual array has the given length.- Throws:
IllegalArgumentException
- iflength < 0
-