org.junit.contrib.truth
Class AbstractVerb
java.lang.Object
org.junit.contrib.truth.AbstractVerb
- Direct Known Subclasses:
- AbstractVerb.DelegatedVerb, 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 DelegationTest . |
void |
fail()
Triggers the failure strategy with an empty failure message |
void |
fail(String message)
Triggers the failure strategy with the given failure message |
protected FailureStrategy |
getFailureStrategy()
|
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 message)
- Triggers the failure strategy with the given failure message
about
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
DelegationTest
.
- Parameters:
factory
- a SubjectFactory implementation- See Also:
DelegationTest
Copyright © 2014. All Rights Reserved.