com.atlassian.webdriver.testing.runner
Class TestProductContextRunner.MockTestedProductThatIsInjectionContext

java.lang.Object
  extended by com.atlassian.webdriver.testing.runner.TestProductContextRunner.MockTestedProductThatIsInjectionContext
All Implemented Interfaces:
InjectionContext, TestedProduct<Tester>
Enclosing class:
TestProductContextRunner

public static class TestProductContextRunner.MockTestedProductThatIsInjectionContext
extends Object
implements TestedProduct<Tester>, InjectionContext


Field Summary
 Class<?> injectedClass
           
 Object injectedInstance
           
 
Constructor Summary
TestProductContextRunner.MockTestedProductThatIsInjectionContext(TestedProductFactory.TesterFactory<?> testerFactory, ProductInstance productInstance)
           
 
Method Summary
<T> T
getInstance(Class<T> type)
           
 PageBinder getPageBinder()
           
 ProductInstance getProductInstance()
           
 Tester getTester()
           
 void injectMembers(Object targetInstance)
           
 void injectStatic(Class<?> targetClass)
           
<P extends Page>
P
visit(Class<P> pageClass, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

injectedClass

public Class<?> injectedClass

injectedInstance

public Object injectedInstance
Constructor Detail

TestProductContextRunner.MockTestedProductThatIsInjectionContext

public TestProductContextRunner.MockTestedProductThatIsInjectionContext(TestedProductFactory.TesterFactory<?> testerFactory,
                                                                        ProductInstance productInstance)
Method Detail

visit

public <P extends Page> P visit(Class<P> pageClass,
                                Object... args)
Specified by:
visit in interface TestedProduct<Tester>

getPageBinder

public PageBinder getPageBinder()
Specified by:
getPageBinder in interface TestedProduct<Tester>

getProductInstance

public ProductInstance getProductInstance()
Specified by:
getProductInstance in interface TestedProduct<Tester>

getTester

public Tester getTester()
Specified by:
getTester in interface TestedProduct<Tester>

getInstance

@Nonnull
public <T> T getInstance(@Nonnull
                                 Class<T> type)
Specified by:
getInstance in interface InjectionContext

injectStatic

public void injectStatic(@Nonnull
                         Class<?> targetClass)
Specified by:
injectStatic in interface InjectionContext

injectMembers

public void injectMembers(@Nonnull
                          Object targetInstance)
Specified by:
injectMembers in interface InjectionContext


Copyright © 2014 Atlassian. All rights reserved.