ObjectArraySubject, PrimitiveBooleanArraySubject, PrimitiveByteArraySubject, PrimitiveCharArraySubject, PrimitiveDoubleArraySubject, PrimitiveFloatArraySubject, PrimitiveIntArraySubject, PrimitiveLongArraySubjectpublic abstract class AbstractArraySubject<S extends AbstractArraySubject<S,T>,T> extends Subject<AbstractArraySubject<S,T>,T>
Subject.HasFieldfailureStrategy| Modifier and Type | Method | 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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcheck, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeledpublic void isEmpty()
array.length != 0).public void isNotEmpty()
array.length == 0).public void hasLength(int length)
public S named(String name)
Subjectnamed in class Subject<AbstractArraySubject<S extends AbstractArraySubject<S,T>,T>,T>protected String getDisplaySubject()
getDisplaySubject in class Subject<AbstractArraySubject<S extends AbstractArraySubject<S,T>,T>,T>Copyright © 2019. All rights reserved.