|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Module<T>
Indicates an interchangeable piece of a test Fixture. The Modules exposes service for consumption of a test method. It also specifies services it needs in order to provide it's services. Implementors of this class are expected to be thread safe. Which requires that the class be stateless, or that it contains a poolable set of services, and selects one for each test that needs to run. Testing will be run in a heavily multithreaded manner. Care must be taken in constructing implementations of this class.
| Method Summary | |
|---|---|
T |
create(Map<String,?> dependencies)
|
void |
destroy()
Provides and needed clean up of this module. |
Map<String,Class<?>> |
getDependencyDefinition()
|
String |
getModuleType()
This is a key that is used to determine which modules are interchangeable in testing |
Class<? extends T> |
getTargetClass()
This is the class that the TestNG-Extensions library, |
| Method Detail |
|---|
String getModuleType()
getModuleType in interface ModuleProvider<T>Class<? extends T> getTargetClass()
Map<String,Class<?>> getDependencyDefinition()
T create(Map<String,?> dependencies)
dependencies -
void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||