Package com.google.common.truth
Class ObjectArraySubject<T extends @Nullable Object>
- java.lang.Object
-
- com.google.common.truth.Subject
-
- com.google.common.truth.ObjectArraySubject<T>
-
-
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 IterableSubjectasList()voidhasLength(int length)Checks that the actual array has the given length.voidisEmpty()Checks that the actual array is empty (i.e., thatarray.length == 0).voidisNotEmpty()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 Detail
-
asList
public IterableSubject asList()
-
isEmpty
public void isEmpty()
Checks that the actual array is empty (i.e., thatarray.length == 0).
-
isNotEmpty
public void isNotEmpty()
Checks that the actual array is not empty (i.e., thatarray.length > 0).
-
hasLength
public void hasLength(int length)
Checks that the actual array has the given length.
-
-