public class TestedProductFactory extends Object
TestedProduct. The TestedProduct instance is created by calling the constructor
with the following method signature:
TestedProduct(TesterFactory, ProductInstance)
| Modifier and Type | Class and Description |
|---|---|
static class |
TestedProductFactory.SingletonTesterFactory<T extends Tester>
A factory that always returns the same
Tester |
static interface |
TestedProductFactory.TesterFactory<T>
A factory for
Tester instances |
| Constructor and Description |
|---|
TestedProductFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends TestedProduct<?>> |
create(Class<P> testedProductClass)
Creates a tested product, allowing the instance to choose its own default
Tester and instance id |
static <P extends TestedProduct<?>> |
create(Class<P> testedProductClass,
ProductInstance productInstance,
TestedProductFactory.TesterFactory<?> testerFactory)
Creates a tested product using the passed tester factory and product instance.
|
static <P extends TestedProduct<?>> |
create(Class<P> testedProductClass,
String instanceId,
TestedProductFactory.TesterFactory<?> testerFactory)
Creates a tested product using the passed tester factory and instance id.
|
static TestedProduct<?> |
create(String testedProductClass)
Creates a tested product, allowing the instance to choose its own default
Tester and instance id |
static <T extends TestedProduct<?>> |
fromFactory(Class<T> productClass) |
public static <T extends TestedProduct<?>> com.google.common.base.Supplier<T> fromFactory(Class<T> productClass)
public static TestedProduct<?> create(String testedProductClass)
Tester and instance idtestedProductClass - The tested product class namepublic static <P extends TestedProduct<?>> P create(Class<P> testedProductClass)
Tester and instance idP - The tested product typetestedProductClass - The tested product classpublic static <P extends TestedProduct<?>> P create(Class<P> testedProductClass, String instanceId, TestedProductFactory.TesterFactory<?> testerFactory)
P - The tested product typetestedProductClass - The tested product classinstanceId - The instance idtesterFactory - The tester factory to use to pass to the tested productpublic static <P extends TestedProduct<?>> P create(Class<P> testedProductClass, ProductInstance productInstance, TestedProductFactory.TesterFactory<?> testerFactory)
P - The tested product typetestedProductClass - The tested product classproductInstance - The product instancetesterFactory - The tester factory to use to pass to the tested productCopyright © 2015 Atlassian. All rights reserved.