|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.common.truth.AbstractVerb<T>
public abstract class AbstractVerb<T extends AbstractVerb<T>>
Nested Class Summary | |
---|---|
static class |
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T>
A special Verb implementation which wraps a SubjectFactory |
protected static class |
AbstractVerb.MessageOverridingFailureStrategy
|
Constructor Summary | |
---|---|
AbstractVerb(FailureStrategy failureStrategy)
|
Method Summary | ||
---|---|---|
|
about(SF factory)
The recommended method of extension of Truth to new types, which is documented in com.google.common.truth.delegation.DelegationTest . |
|
void |
fail()
Triggers the failure strategy with an empty failure message |
|
void |
fail(String format,
Object... args)
Triggers the failure strategy with the given failure message |
|
protected abstract String |
getFailureMessage()
|
|
protected FailureStrategy |
getFailureStrategy()
|
|
|
in(Iterable<T> data)
|
|
abstract T |
withFailureMessage(String failureMessage)
Overrides the failure message of the subsequent subject's propositions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractVerb(FailureStrategy failureStrategy)
Method Detail |
---|
protected FailureStrategy getFailureStrategy()
public void fail()
public void fail(String format, Object... args)
@CheckReturnValue public abstract T withFailureMessage(String failureMessage)
factory
- a SubjectFactorycom.google.common.truth.delegation.DelegationTest
protected abstract String getFailureMessage()
public <S extends Subject<S,T>,T,SF extends SubjectFactory<S,T>> AbstractVerb.DelegatedVerb<S,T> about(SF factory)
com.google.common.truth.delegation.DelegationTest
.
factory
- a SubjectFactorycom.google.common.truth.delegation.DelegationTest
@GwtIncompatible(value="org.truth0.IteratingVerb") public <T> IteratingVerb<T> in(Iterable<T> data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |