org.truth0
Class AbstractVerb
java.lang.Object
org.truth0.AbstractVerb
- Direct Known Subclasses:
- AbstractVerb.DelegatedVerb, IteratingVerb, TestVerb
@GwtCompatible
public class AbstractVerb
- extends Object
Method Summary |
|
about(SF factory)
The recommended method of extension of Truth to new types, which is
documented in org.truth0.delegatetest.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 FailureStrategy |
getFailureStrategy()
|
|
in(Iterable<T> data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVerb
public AbstractVerb(FailureStrategy failureStrategy)
getFailureStrategy
protected FailureStrategy getFailureStrategy()
fail
public void fail()
- Triggers the failure strategy with an empty failure message
fail
public void fail(String format,
Object... args)
- Triggers the failure strategy with the given failure message
about
@CheckReturnValue
public <S extends Subject<S,T>,T,SF extends SubjectFactory<S,T>> AbstractVerb.DelegatedVerb<S,T> about(SF factory)
- The recommended method of extension of Truth to new types, which is
documented in
org.truth0.delegatetest.DelegationTest
.
- Parameters:
factory
- a SubjectFactory implementation- See Also:
org.truth0.delegatetest.DelegationTest
in
@GwtIncompatible(value="org.truth0.IteratingVerb")
public <T> IteratingVerb<T> in(Iterable<T> data)
Copyright © 2014. All rights reserved.