Top Description Methods
org.testng

public Interface IModuleFactory

Imports
com.google.inject.Module

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 TypeMethod and Description
public Module

Returns:

The Guice module that should be used to get an instance of this test class.
createModule
(ITestContext
The current test context
context
,
Class<?>
The test class
testClass
)

Method Detail

createModuleback to summary
public Module createModule(ITestContext context, Class<?> testClass)
Parameters
context:ITestContext

The current test context

testClass:Class<?>

The test class

Returns:Module

The Guice module that should be used to get an instance of this test class.