ObjectArraySubject
, PrimitiveBooleanArraySubject
, PrimitiveByteArraySubject
, PrimitiveCharArraySubject
, PrimitiveDoubleArraySubject
, PrimitiveFloatArraySubject
, PrimitiveIntArraySubject
, PrimitiveLongArraySubject
public abstract class AbstractArraySubject<S extends AbstractArraySubject<S,T>,T> extends Subject<AbstractArraySubject<S,T>,T>
Subject.HasField
failureStrategy
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, wait
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)
public S named(String name)
Subject
named
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.