org.junit.contrib.truth
Class AbstractVerb

java.lang.Object
  extended by org.junit.contrib.truth.AbstractVerb
Direct Known Subclasses:
AbstractVerb.DelegatedVerb, TestVerb

@GwtCompatible
public class AbstractVerb
extends Object


Nested Class Summary
static class AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T>
          A special Verb implementation which wraps a SubjectFactory
 
Constructor Summary
AbstractVerb(FailureStrategy failureStrategy)
           
 
Method Summary
<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 .
 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
 

Constructor Detail

AbstractVerb

public AbstractVerb(FailureStrategy failureStrategy)
Method Detail

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.