public interface DelegatedVerbFactory<V extends AbstractDelegatedVerb<V>>
SubjectFactory which defines its own verb type.
The verb defines one or more that() methods which accept an object to test and return
a Subject which provides testing methods. Generally, if writing an extension to Truth,
you should use a SubjectFactory instead, and let Truth handle the verb glue.
However, a DelegatedVerbFactory is useful when the generics on SubjectFactory
are too strict - for example, if your custom Subject is parameterized, and you want to
infer the parameter type from the test object. See DelegatedVerbFactoryTest for an
example implementation.
| Modifier and Type | Method and Description |
|---|---|
V |
createVerb(FailureStrategy failureStrategy)
Instantiates a new V with
failureStrategy and itself. |
V createVerb(FailureStrategy failureStrategy)
failureStrategy and itself.Copyright © 2017. All rights reserved.