public abstract class AbstractArraySubject<S extends AbstractArraySubject<S,T>,T> extends Subject<S,T>
Subject.HasField
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, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled
public void isEmpty()
array.length != 0
).public void isNotEmpty()
array.length == 0
).public void hasLength(int length)
{@link
- IllegalArgumentException} if length < 0
public S named(String name)
Subject
protected String getDisplaySubject()
getDisplaySubject
in class Subject<S extends AbstractArraySubject<S,T>,T>
Copyright © 2014. All rights reserved.