|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TestNotifier
A TestNotifier is used to fire events in test frameworks. It is created with
MycilaTesting.createNotifier(Object) and is
used in test frameworks to fire test events to Mycila plugins.
Execution context
is created and accesible from Mycila.currentExecution()
| Method Summary | |
|---|---|
void |
fireAfterClass()
Fires an event telling plugins that all tests of this class have ended |
void |
fireAfterTest()
Must be fired after the execution of a test method, even if the test method was skipped because if a return of false of the beforeTest method. |
void |
fireBeforeTest(Method method)
Fires a before test exection event to all plugins |
void |
prepare()
Ask for a test preparation |
void |
shutdown()
Ask the plugins to shutdown and cleanly close resources |
| Method Detail |
|---|
void prepare()
throws TestPluginException
TestPluginException - If a plugin failed enhancing the test instance
void fireBeforeTest(Method method)
throws TestPluginException
method - Test method that will be executed
TestPluginException - If a plugin failed in its execution
void fireAfterTest()
throws TestPluginException
TestPluginException - If a plugin failed in its execution
void fireAfterClass()
throws TestPluginException
TestPluginException - If a plugin failed in its executionvoid shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||