public abstract class AbstractArraySubject<S extends AbstractArraySubject<S,T>,T> extends Subject<S,T>
failureStrategy| Modifier and Type | Method and Description |
|---|---|
protected String |
getDisplaySubject() |
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.
|
S |
named(String name)
Renames the subject so that this name appears in the error messages in place of string
representations of the subject.
|
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hashCode, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAspublic void isEmpty()
array.length != 0).public void isNotEmpty()
array.length == 0).public void hasLength(int length)
{@link - IllegalArgumentException} if length < 0public S named(String name)
Subjectprotected String getDisplaySubject()
getDisplaySubject in class Subject<S extends AbstractArraySubject<S,T>,T>Copyright © 2015. All Rights Reserved.