Package org.testng
Interface IModuleFactory
public interface IModuleFactory
This interface is used by the moduleFactory attribute of the @Guice annotation. It allows users
to use different Guice modules based on the test class waiting to be injected.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.Module
createModule
(ITestContext context, Class<?> testClass)
-
Method Details
-
createModule
- Parameters:
context
- The current test contexttestClass
- The test class- Returns:
- The Guice module that should be used to get an instance of this test class.
-