|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.pageobjects.TestedProductFactory
public class TestedProductFactory
Constructs a TestedProduct. The TestedProduct instance is created by calling the constructor
with the following method signature:
TestedProduct(TesterFactory, ProductInstance)
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
TestedProductFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
create(Class<P> testedProductClass)
Creates a tested product, allowing the instance to choose its own default Tester and instance id |
|
static
|
create(Class<P> testedProductClass,
ProductInstance productInstance,
TestedProductFactory.TesterFactory<?> testerFactory)
Creates a tested product using the passed tester factory and product instance. |
|
static
|
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
|
fromFactory(Class<T> productClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestedProductFactory()
| Method Detail |
|---|
public static <T extends TestedProduct<?>> com.google.common.base.Supplier<T> fromFactory(Class<T> productClass)
public static TestedProduct<?> create(String testedProductClass)
Tester and instance id
testedProductClass - The tested product class name
public static <P extends TestedProduct<?>> P create(Class<P> testedProductClass)
Tester and instance id
P - The tested product typetestedProductClass - The tested product class
public 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 product
public 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 product
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||