public interface Dynamic
Tests that extend Dynamic alter the requirements of the ContractSuite. The suite must:
ContractImpl annotation specifying the implementation
being tested@Dynamic.Inject annotated getter that returns an
IProducer<x> where "x" is the class specified in the ContractImpl@RunWith(ContractSuite) annotated class listed in
getSuiteClasses() must:
@Contract.Inject annotated setter that accepts the
producer returned by the Dynamic.Inject annotated method above.@Contract.Inject annotated getter that returns the
producer required for the test.@Dynamic.Inject annotated
producer into a producer that the underlying test can use.The ContractSuite will:
@RunWith( ContractSuite.class )| Modifier and Type | Interface and Description |
|---|---|
static interface |
Dynamic.Inject
The
Dynamic.Inject annotation specifies the getter to be
called to retrieve an instance of a producer for the suite under test. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Class<?>> |
getSuiteClasses()
Get the set of set of classes in the test suite.
|
Collection<Class<?>> getSuiteClasses()
Copyright © 2013-2016 XENEI.com. All Rights Reserved.