public final class ObjectArraySubject<T> extends Subject
Object[]
and more generically T[]
.Modifier and Type | Method and 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.
|
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
public IterableSubject asList()
public final void isEmpty()
array.length > 0
).public final void isNotEmpty()
array.length == 0
).public final void hasLength(int length)
IllegalArgumentException
- if length < 0
Copyright © 2019. All rights reserved.