Package org.testng
Class TestRunner
- java.lang.Object
-
- org.testng.TestRunner
-
- All Implemented Interfaces:
IAttributes,ITestResultNotifier,ITestContext,IThreadWorkerFactory<ITestNGMethod>
public class TestRunner extends java.lang.Object implements ITestContext, ITestResultNotifier, IThreadWorkerFactory<ITestNGMethod>
This class takes care of running one Test.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTestRunner.ConfigurationListenerstatic classTestRunner.PriorityWeight
-
Field Summary
Fields Modifier and Type Field Description private java.util.Comparator<ITestNGMethod>comparatorprivate static java.lang.StringDEFAULT_PROP_OUTPUT_DIRprivate GuiceHelperguiceHelperprivate DataProviderHolderholderprivate static LoggerLOGGERprivate ITestNGMethod[]m_afterSuiteMethodsprivate ITestNGMethod[]m_afterXmlTestMethodsprivate ITestNGMethod[]m_allTestMethodsAll the test methods we found, associated with their respective classes.private IAnnotationFinderm_annotationFinderprivate IAttributesm_attributesprivate ITestNGMethod[]m_beforeSuiteMethodsprivate ITestNGMethod[]m_beforeXmlTestMethodsprivate java.util.Map<java.lang.Class<? extends IClassListener>,IClassListener>m_classListenersprivate java.util.Map<java.lang.Class<?>,ITestClass>m_classMapA map to keep track of Class <-> IClass.private ClassMethodMapm_classMethodMapprivate IConfigurationm_configurationprivate java.util.Set<IConfigurationListener>m_configurationListenersprivate IConfigurationListenerm_confListenerprivate java.util.Datem_endDateprivate java.util.List<ITestNGMethod>m_excludedMethodsprivate IResultMapm_failedButWithinSuccessPercentageTestsprivate IResultMapm_failedConfigurationsprivate IResultMapm_failedTestsprivate ConfigurationGroupMethodsm_groupMethodsprivate ListMultiMap<java.lang.Class<? extends com.google.inject.Module>,com.google.inject.Module>m_guiceModulesprivate java.lang.Stringm_hostprivate IInjectorFactorym_injectorFactoryprivate java.util.Map<java.util.List<com.google.inject.Module>,com.google.inject.Injector>m_injectorsprivate java.util.Collection<IInvokedMethodListener>m_invokedMethodListenersprivate java.util.Collection<IInvokedMethod>m_invokedMethodsprivate IInvokerm_invokerprivate java.util.Map<java.lang.String,java.util.List<java.lang.String>>m_metaGroupsprivate java.util.List<IMethodInterceptor>m_methodInterceptorsprivate java.lang.Stringm_outputDirectoryWhere the reports will be created.private IResultMapm_passedConfigurationsprivate IResultMapm_passedTestsprivate RunInfom_runInfoprivate IResultMapm_skippedConfigurationsprivate IResultMapm_skippedTestsprivate java.util.Datem_startDateprivate ISuitem_suiteprivate java.util.List<XmlClass>m_testClassesFromXmlprivate TestNGClassFinderm_testClassFinderprivate java.util.List<ITestListener>m_testListenersITestListeners support.private java.lang.Stringm_testNameprivate static intm_verboseprivate XmlMethodSelectorm_xmlMethodSelectorprivate XmlTestm_xmlTestprivate java.util.Set<IExecutionVisualiser>visualisers
-
Constructor Summary
Constructors Modifier Constructor Description TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners)TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator)protectedTestRunner(IConfiguration configuration, ISuite suite, XmlTest test, java.lang.String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddConfigurationListener(IConfigurationListener icl)voidaddFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod, ITestResult result)voidaddFailedTest(ITestNGMethod testMethod, ITestResult result)voidaddInjector(java.util.List<com.google.inject.Module> moduleInstances, com.google.inject.Injector injector)voidaddInvokedMethod(InvokedMethod im)voidaddListener(ITestNGListener listener)private voidaddMetaGroup(java.lang.String name, java.util.List<java.lang.String> groupNames)(package private) voidaddMethodInterceptor(IMethodInterceptor methodInterceptor)voidaddPassedTest(ITestNGMethod tm, ITestResult tr)voidaddSkippedTest(ITestNGMethod tm, ITestResult tr)(package private) voidaddTestListener(ITestListener listener)private voidafterRun()private voidbeforeRun()Before run preparements.private java.util.Map<java.lang.String,java.lang.String>createGroups(java.util.List<java.lang.String> groups)java.util.List<IWorker<ITestNGMethod>>createWorkers(java.util.List<ITestNGMethod> methods)Create a list of workers to run the methods passed in parameter.private voiddumpInvokedMethods()private voidfireEvent(boolean isStart)Trigger the start/finish event.ITestNGMethod[]getAfterSuiteMethods()ITestNGMethod[]getAfterTestConfigurationMethods()private java.util.List<XmlPackage>getAllPackages()Returns all packages to use for the current test.ITestNGMethod[]getAllTestMethods()java.lang.ObjectgetAttribute(java.lang.String name)java.util.Set<java.lang.String>getAttributeNames()ITestNGMethod[]getBeforeSuiteMethods()ITestNGMethod[]getBeforeTestConfigurationMethods()java.util.List<IConfigurationListener>getConfigurationListeners()XmlTestgetCurrentXmlTest()java.util.DategetEndDate()java.lang.String[]getExcludedGroups()java.util.Collection<ITestNGMethod>getExcludedMethods()IResultMapgetFailedButWithinSuccessPercentageTests()IResultMapgetFailedConfigurations()IResultMapgetFailedTests()java.util.Set<ITestResult>getFailedTests(ITestNGMethod tm)java.util.List<com.google.inject.Module>getGuiceModules(java.lang.Class<? extends com.google.inject.Module> cls)java.lang.StringgetHost()java.lang.String[]getIncludedGroups()com.google.inject.InjectorgetInjector(java.util.List<com.google.inject.Module> moduleInstances)com.google.inject.InjectorgetInjector(IClass iClass)java.util.List<ITestNGMethod>getInvokedMethods()IInvokergetInvoker()java.lang.StringgetName()java.lang.StringgetOutputDirectory()IResultMapgetPassedConfigurations()IResultMapgetPassedTests()java.util.Set<ITestResult>getPassedTests(ITestNGMethod tm)IResultMapgetSkippedConfigurations()IResultMapgetSkippedTests()java.util.Set<ITestResult>getSkippedTests(ITestNGMethod tm)java.util.DategetStartDate()ISuitegetSuite()XmlTestgetTest()java.util.Collection<ITestClass>getTestClasses()java.util.List<ITestListener>getTestListeners()static intgetVerbose()private voidinit()private voidinit(IConfiguration configuration, ISuite suite, XmlTest test, java.lang.String outputDirectory, IAnnotationFinder annotationFinder, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners)private voidinitListeners()private voidinitMetaGroups(XmlTest xmlTest)Initialize meta groupsprivate voidinitMethods()private voidinitRunInfo(XmlTest xmlTest)private ITestNGMethod[]intercept(ITestNGMethod[] methods)Apply the method interceptor (if applicable) to the list of methods.private voidinvokeTestConfigurations(ITestNGMethod[] testConfigurationMethods)private static voidlog(java.lang.String s)private voidlogFailedTest(ITestNGMethod method, ITestResult tr, boolean withinSuccessPercentage)private voidlogStart()Logs the beginning of thebeforeRun().private static java.util.Comparator<ITestNGMethod>newComparator(boolean needPrioritySort)private static java.util.concurrent.BlockingQueue<java.lang.Runnable>newQueue(boolean needPrioritySort)private voidprivateRun(XmlTest xmlTest)Main method that create a graph of methods and then pass it to the graph executor to run them.private voidprivateRunJUnit()java.lang.ObjectremoveAttribute(java.lang.String name)Remove the attributevoidrun()The main entry method for TestRunner.private voidrunJUnitWorkers(java.util.List<? extends IWorker<ITestNGMethod>> workers)voidsetAttribute(java.lang.String name, java.lang.Object value)Set a custom attribute.voidsetOutputDirectory(java.lang.String od)voidsetTestName(java.lang.String name)voidsetVerbose(int n)private booleansortOnPriority(ITestNGMethod[] interceptedOrder)
-
-
-
Field Detail
-
DEFAULT_PROP_OUTPUT_DIR
private static final java.lang.String DEFAULT_PROP_OUTPUT_DIR
- See Also:
- Constant Field Values
-
LOGGER
private static final Logger LOGGER
-
comparator
private final java.util.Comparator<ITestNGMethod> comparator
-
m_suite
private ISuite m_suite
-
m_xmlTest
private XmlTest m_xmlTest
-
m_testName
private java.lang.String m_testName
-
m_injectorFactory
private IInjectorFactory m_injectorFactory
-
guiceHelper
private final GuiceHelper guiceHelper
-
m_testClassesFromXml
private java.util.List<XmlClass> m_testClassesFromXml
-
m_invoker
private IInvoker m_invoker
-
m_annotationFinder
private IAnnotationFinder m_annotationFinder
-
m_testListeners
private java.util.List<ITestListener> m_testListeners
ITestListeners support.
-
m_configurationListeners
private java.util.Set<IConfigurationListener> m_configurationListeners
-
visualisers
private final java.util.Set<IExecutionVisualiser> visualisers
-
m_confListener
private IConfigurationListener m_confListener
-
m_invokedMethodListeners
private java.util.Collection<IInvokedMethodListener> m_invokedMethodListeners
-
m_classListeners
private final java.util.Map<java.lang.Class<? extends IClassListener>,IClassListener> m_classListeners
-
holder
private final DataProviderHolder holder
-
m_allTestMethods
private ITestNGMethod[] m_allTestMethods
All the test methods we found, associated with their respective classes. Note that these test methods might belong to different classes. We pick which ones to run at runtime.
-
m_startDate
private java.util.Date m_startDate
-
m_endDate
private java.util.Date m_endDate
-
m_classMap
private java.util.Map<java.lang.Class<?>,ITestClass> m_classMap
A map to keep track of Class <-> IClass.
-
m_outputDirectory
private java.lang.String m_outputDirectory
Where the reports will be created.
-
m_xmlMethodSelector
private XmlMethodSelector m_xmlMethodSelector
-
m_verbose
private static int m_verbose
-
m_beforeSuiteMethods
private ITestNGMethod[] m_beforeSuiteMethods
-
m_afterSuiteMethods
private ITestNGMethod[] m_afterSuiteMethods
-
m_beforeXmlTestMethods
private ITestNGMethod[] m_beforeXmlTestMethods
-
m_afterXmlTestMethods
private ITestNGMethod[] m_afterXmlTestMethods
-
m_excludedMethods
private java.util.List<ITestNGMethod> m_excludedMethods
-
m_groupMethods
private ConfigurationGroupMethods m_groupMethods
-
m_metaGroups
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> m_metaGroups
-
m_passedTests
private IResultMap m_passedTests
-
m_failedTests
private IResultMap m_failedTests
-
m_failedButWithinSuccessPercentageTests
private IResultMap m_failedButWithinSuccessPercentageTests
-
m_skippedTests
private IResultMap m_skippedTests
-
m_runInfo
private RunInfo m_runInfo
-
m_host
private java.lang.String m_host
-
m_methodInterceptors
private java.util.List<IMethodInterceptor> m_methodInterceptors
-
m_classMethodMap
private ClassMethodMap m_classMethodMap
-
m_testClassFinder
private TestNGClassFinder m_testClassFinder
-
m_configuration
private IConfiguration m_configuration
-
m_invokedMethods
private final java.util.Collection<IInvokedMethod> m_invokedMethods
-
m_passedConfigurations
private IResultMap m_passedConfigurations
-
m_skippedConfigurations
private IResultMap m_skippedConfigurations
-
m_failedConfigurations
private IResultMap m_failedConfigurations
-
m_attributes
private IAttributes m_attributes
-
m_guiceModules
private ListMultiMap<java.lang.Class<? extends com.google.inject.Module>,com.google.inject.Module> m_guiceModules
-
m_injectors
private java.util.Map<java.util.List<com.google.inject.Module>,com.google.inject.Injector> m_injectors
-
-
Constructor Detail
-
TestRunner
protected TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, java.lang.String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder)
-
TestRunner
public TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator)
-
TestRunner
public TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners)
-
-
Method Detail
-
init
private void init(IConfiguration configuration, ISuite suite, XmlTest test, java.lang.String outputDirectory, IAnnotationFinder annotationFinder, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners)
-
getAllPackages
private java.util.List<XmlPackage> getAllPackages()
Returns all packages to use for the current test. This includes the test from the test suite. Never returns null.
-
getInvoker
public IInvoker getInvoker()
-
getBeforeSuiteMethods
public ITestNGMethod[] getBeforeSuiteMethods()
-
getAfterSuiteMethods
public ITestNGMethod[] getAfterSuiteMethods()
-
getBeforeTestConfigurationMethods
public ITestNGMethod[] getBeforeTestConfigurationMethods()
-
getAfterTestConfigurationMethods
public ITestNGMethod[] getAfterTestConfigurationMethods()
-
init
private void init()
-
initListeners
private void initListeners()
-
initMetaGroups
private void initMetaGroups(XmlTest xmlTest)
Initialize meta groups
-
initRunInfo
private void initRunInfo(XmlTest xmlTest)
-
initMethods
private void initMethods()
-
getTestClasses
public java.util.Collection<ITestClass> getTestClasses()
-
setTestName
public void setTestName(java.lang.String name)
-
setOutputDirectory
public void setOutputDirectory(java.lang.String od)
-
addMetaGroup
private void addMetaGroup(java.lang.String name, java.util.List<java.lang.String> groupNames)
-
createGroups
private java.util.Map<java.lang.String,java.lang.String> createGroups(java.util.List<java.lang.String> groups)
-
run
public void run()
The main entry method for TestRunner.This is where all the hard work is done: - Invoke configuration methods - Invoke test methods - Catch exceptions - Collect results - Invoke listeners - etc...
-
beforeRun
private void beforeRun()
Before run preparements.
-
invokeTestConfigurations
private void invokeTestConfigurations(ITestNGMethod[] testConfigurationMethods)
-
privateRunJUnit
private void privateRunJUnit()
-
newComparator
private static java.util.Comparator<ITestNGMethod> newComparator(boolean needPrioritySort)
-
sortOnPriority
private boolean sortOnPriority(ITestNGMethod[] interceptedOrder)
-
newQueue
private static java.util.concurrent.BlockingQueue<java.lang.Runnable> newQueue(boolean needPrioritySort)
-
privateRun
private void privateRun(XmlTest xmlTest)
Main method that create a graph of methods and then pass it to the graph executor to run them.
-
intercept
private ITestNGMethod[] intercept(ITestNGMethod[] methods)
Apply the method interceptor (if applicable) to the list of methods.
-
createWorkers
public java.util.List<IWorker<ITestNGMethod>> createWorkers(java.util.List<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter. Each test method is run in its own worker except in the following cases: - The method belongs to a class that has @Test(sequential=true) - The parallel attribute is set to "classes" In both these cases, all the methods belonging to that class will then be put in the same worker in order to run in the same thread.- Specified by:
createWorkersin interfaceIThreadWorkerFactory<ITestNGMethod>- Parameters:
methods- tasks that need to be executed- Returns:
- list of workers
-
runJUnitWorkers
private void runJUnitWorkers(java.util.List<? extends IWorker<ITestNGMethod>> workers)
-
afterRun
private void afterRun()
-
logStart
private void logStart()
Logs the beginning of thebeforeRun().
-
fireEvent
private void fireEvent(boolean isStart)
Trigger the start/finish event.- Parameters:
isStart- true if the event is for start, false if the event is for finish
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceITestContext- Returns:
- The name of this test.
-
getStartDate
public java.util.Date getStartDate()
- Specified by:
getStartDatein interfaceITestContext- Returns:
- Returns the startDate.
-
getEndDate
public java.util.Date getEndDate()
- Specified by:
getEndDatein interfaceITestContext- Returns:
- Returns the endDate.
-
getPassedTests
public IResultMap getPassedTests()
- Specified by:
getPassedTestsin interfaceITestContext- Returns:
- A list of all the tests that run successfully.
-
getSkippedTests
public IResultMap getSkippedTests()
- Specified by:
getSkippedTestsin interfaceITestContext- Returns:
- A list of all the tests that were skipped
-
getFailedTests
public IResultMap getFailedTests()
- Specified by:
getFailedTestsin interfaceITestContext- Returns:
- A map of all the tests that passed, indexed by their ITextMethor.
- See Also:
ITestNGMethod
-
getFailedButWithinSuccessPercentageTests
public IResultMap getFailedButWithinSuccessPercentageTests()
- Specified by:
getFailedButWithinSuccessPercentageTestsin interfaceITestContext- Returns:
- A list of all the tests that failed but are being ignored because annotated with a successPercentage.
-
getIncludedGroups
public java.lang.String[] getIncludedGroups()
- Specified by:
getIncludedGroupsin interfaceITestContext- Returns:
- All the groups that are included for this test run.
-
getExcludedGroups
public java.lang.String[] getExcludedGroups()
- Specified by:
getExcludedGroupsin interfaceITestContext- Returns:
- All the groups that are excluded for this test run.
-
getOutputDirectory
public java.lang.String getOutputDirectory()
- Specified by:
getOutputDirectoryin interfaceITestContext- Returns:
- Where the reports will be generated.
-
getSuite
public ISuite getSuite()
- Specified by:
getSuitein interfaceITestContext- Returns:
- Returns the suite.
-
getAllTestMethods
public ITestNGMethod[] getAllTestMethods()
- Specified by:
getAllTestMethodsin interfaceITestContext- Returns:
- All the test methods that were run.
-
getHost
public java.lang.String getHost()
- Specified by:
getHostin interfaceITestContext- Returns:
- The host where this test was run, or null if it was run locally. The returned string has the form: host:port
-
getExcludedMethods
public java.util.Collection<ITestNGMethod> getExcludedMethods()
- Specified by:
getExcludedMethodsin interfaceITestContext- Returns:
- All the methods that were not included in this test run.
-
getFailedConfigurations
public IResultMap getFailedConfigurations()
- Specified by:
getFailedConfigurationsin interfaceITestContext- Returns:
- The information about the failed configuration method invocations.
- See Also:
ITestContext.getFailedConfigurations()
-
getPassedConfigurations
public IResultMap getPassedConfigurations()
- Specified by:
getPassedConfigurationsin interfaceITestContext- Returns:
- The information about the successful configuration method invocations.
- See Also:
ITestContext.getPassedConfigurations()
-
getSkippedConfigurations
public IResultMap getSkippedConfigurations()
- Specified by:
getSkippedConfigurationsin interfaceITestContext- Returns:
- The information about the skipped configuration method invocations.
- See Also:
ITestContext.getSkippedConfigurations()
-
addPassedTest
public void addPassedTest(ITestNGMethod tm, ITestResult tr)
- Specified by:
addPassedTestin interfaceITestResultNotifier
-
getPassedTests
public java.util.Set<ITestResult> getPassedTests(ITestNGMethod tm)
- Specified by:
getPassedTestsin interfaceITestResultNotifier
-
getFailedTests
public java.util.Set<ITestResult> getFailedTests(ITestNGMethod tm)
- Specified by:
getFailedTestsin interfaceITestResultNotifier
-
getSkippedTests
public java.util.Set<ITestResult> getSkippedTests(ITestNGMethod tm)
- Specified by:
getSkippedTestsin interfaceITestResultNotifier
-
addSkippedTest
public void addSkippedTest(ITestNGMethod tm, ITestResult tr)
- Specified by:
addSkippedTestin interfaceITestResultNotifier
-
addInvokedMethod
public void addInvokedMethod(InvokedMethod im)
- Specified by:
addInvokedMethodin interfaceITestResultNotifier
-
addFailedTest
public void addFailedTest(ITestNGMethod testMethod, ITestResult result)
- Specified by:
addFailedTestin interfaceITestResultNotifier
-
addFailedButWithinSuccessPercentageTest
public void addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod, ITestResult result)
- Specified by:
addFailedButWithinSuccessPercentageTestin interfaceITestResultNotifier
-
getTest
public XmlTest getTest()
- Specified by:
getTestin interfaceITestResultNotifier
-
getTestListeners
public java.util.List<ITestListener> getTestListeners()
- Specified by:
getTestListenersin interfaceITestResultNotifier
-
getConfigurationListeners
public java.util.List<IConfigurationListener> getConfigurationListeners()
- Specified by:
getConfigurationListenersin interfaceITestResultNotifier
-
logFailedTest
private void logFailedTest(ITestNGMethod method, ITestResult tr, boolean withinSuccessPercentage)
-
log
private static void log(java.lang.String s)
-
getVerbose
public static int getVerbose()
-
setVerbose
public void setVerbose(int n)
-
addTestListener
void addTestListener(ITestListener listener)
-
addListener
public void addListener(ITestNGListener listener)
-
addConfigurationListener
void addConfigurationListener(IConfigurationListener icl)
-
dumpInvokedMethods
private void dumpInvokedMethods()
-
getInvokedMethods
public java.util.List<ITestNGMethod> getInvokedMethods()
-
addMethodInterceptor
void addMethodInterceptor(IMethodInterceptor methodInterceptor)
-
getCurrentXmlTest
public XmlTest getCurrentXmlTest()
- Specified by:
getCurrentXmlTestin interfaceITestContext- Returns:
- the current XmlTest.
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttributein interfaceIAttributes- Parameters:
name- The name of the attribute to return- Returns:
- The attribute
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:IAttributesSet a custom attribute.- Specified by:
setAttributein interfaceIAttributes- Parameters:
name- The attribute namevalue- The attribute value
-
getAttributeNames
public java.util.Set<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceIAttributes- Returns:
- all the attributes names.
-
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
Description copied from interface:IAttributesRemove the attribute- Specified by:
removeAttributein interfaceIAttributes- Parameters:
name- The attribute name- Returns:
- the attribute value if found, null otherwise
-
getGuiceModules
public java.util.List<com.google.inject.Module> getGuiceModules(java.lang.Class<? extends com.google.inject.Module> cls)
- Specified by:
getGuiceModulesin interfaceITestContext
-
getInjector
public com.google.inject.Injector getInjector(java.util.List<com.google.inject.Module> moduleInstances)
- Specified by:
getInjectorin interfaceITestContext
-
getInjector
public com.google.inject.Injector getInjector(IClass iClass)
- Specified by:
getInjectorin interfaceITestContext
-
addInjector
public void addInjector(java.util.List<com.google.inject.Module> moduleInstances, com.google.inject.Injector injector)- Specified by:
addInjectorin interfaceITestContext
-
-