org.unitils.core
Interface Module

All Known Implementing Classes:
DatabaseModule, DbUnitModule, EasyMockModule, HibernateModule, InjectModule, IOModule, JpaModule, MockModule, OrmModule, SpringModule

public interface Module

A type for modules that offer services to tests. Before a module is used, init(java.util.Properties) will be called so that it can initialize itself. After initialization, getTestListener() will be called, so that the module can create a callback that can plug into the test exucution sequence. See TestListener javadoc for more info.

Author:
Tim Ducheyne, Filip Neven

Method Summary
 void afterInit()
          Gives the module the opportunity to performs initialization that can only work after all other modules have been initialized
 TestListener getTestListener()
          Creates the test listener for this module.
 void init(Properties configuration)
          Initializes the module with the given configuration settings.
 

Method Detail

init

void init(Properties configuration)
Initializes the module with the given configuration settings.

Parameters:
configuration - The config, not null

afterInit

void afterInit()
Gives the module the opportunity to performs initialization that can only work after all other modules have been initialized


getTestListener

TestListener getTestListener()
Creates the test listener for this module.

Returns:
The test listener, not null


Copyright © 2011. All Rights Reserved.