public abstract class AbstractArraySubject<S extends AbstractArraySubject<S,T>,T> extends Subject<AbstractArraySubject<S,T>,T>
Subject.HasField
failureStrategy
Constructor and Description |
---|
AbstractArraySubject(FailureStrategy failureStrategy,
T subject) |
Modifier and Type | Method and Description |
---|---|
protected void |
failWithBadType(Object expected) |
protected String |
getDisplaySubject() |
protected abstract List<?> |
listRepresentation() |
S |
named(String name)
Renames the subject so that this name appears in the error messages in place of string
representations of the subject.
|
protected abstract String |
underlyingType() |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, labeled
public AbstractArraySubject(FailureStrategy failureStrategy, T subject)
public S named(String name)
Subject
named
in class Subject<AbstractArraySubject<S extends AbstractArraySubject<S,T>,T>,T>
protected abstract String underlyingType()
protected abstract List<?> listRepresentation()
protected String getDisplaySubject()
getDisplaySubject
in class Subject<AbstractArraySubject<S extends AbstractArraySubject<S,T>,T>,T>
protected void failWithBadType(Object expected)
Copyright © 2016. All rights reserved.