public abstract class AbstractDelegatedVerb<V extends AbstractDelegatedVerb<V>> extends Object
that() methods for the
 Truth SPI. Intended for advanced usage only, generally you should prefer to create a SubjectFactory when extending Truth.
 This class has no abstract methods because it's intended to be extended only when unique
 generics are required on the that() method. Regardless, any subclass should define at
 least one that() method which accepts a single argument and returns a Subject, to
 be consistent with the Truth SPI.
 
Every subclass of AbstractDelegatedVerb should also have a companion DelegatedVerbFactory which knows how to instantiate it. The factory should pass the FailureStrategy it receives, along with itself (this) into the constructor for the
 AbstractDelegatedVerb.
 
For an example implementation and usage, see DelegatedVerbFactoryTest.
| Modifier and Type | Field and Description | 
|---|---|
protected FailureStrategy | 
failureStrategy  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractDelegatedVerb(FailureStrategy failureStrategy,
                     DelegatedVerbFactory<V> factory)  | 
| Modifier and Type | Method and Description | 
|---|---|
V | 
withFailureMessage(String failureMessage)
Deprecated. 
 
Call  
withFailureMessage on the AbstractVerb before calling
     about. | 
V | 
withFailureMessage(String format,
                  Object... args)
Deprecated. 
 
Call  
withFailureMessage on the AbstractVerb before calling
     about. | 
protected final FailureStrategy failureStrategy
protected AbstractDelegatedVerb(FailureStrategy failureStrategy, DelegatedVerbFactory<V> factory)
@Deprecated public final V withFailureMessage(@Nullable String failureMessage)
withFailureMessage on the AbstractVerb before calling
     about.@Deprecated public final V withFailureMessage(@Nullable String format, Object... args)
withFailureMessage on the AbstractVerb before calling
     about.Copyright © 2017. All rights reserved.