|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TestPlugin
This interface should be implemented by all plugins.
It is strongly adviced that plugins extends DefaultTestPlugin
instead of implementing directly TestPlugin interface,
to avoid any code break when changing or enhancing the API.
| Method Summary | |
|---|---|
void |
afterClass(TestContext context)
This method will be called on each plugin in order of dependency after all test method of a test instance have finished. |
void |
afterTest(TestExecution testExecution)
This method will be called on each plugin in order of dependency after each test method has finished, even if the method failed. |
void |
beforeTest(TestExecution testExecution)
This method will be called on each plugin in order of dependency to execute code required before a test method can run. |
void |
prepareTestInstance(TestContext context)
This method will be called on each plugin in order of dependency to prepare the test instance before all tests begin to be executed. |
void |
shutdown(TestContext context)
This method will be called at JVM shutdown if the plugin needs to close some resources cleanly. |
| Methods inherited from interface com.mycila.plugin.api.Plugin |
|---|
getAfter, getBefore |
| Method Detail |
|---|
void prepareTestInstance(TestContext context)
throws Exception
context - The test context, relative to one test instance
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
void beforeTest(TestExecution testExecution)
throws Exception
testExecution - The test execution context of this test method. The text execution enables plugins to control whethere the test method
should be skipped or not
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
void afterTest(TestExecution testExecution)
throws Exception
testExecution - The test execution context of this test method. The test execution context enables the plugins to handle what to do
in case of a failed test, with the provided exception in the context
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
void afterClass(TestContext context)
throws Exception
context - The context of this test
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
void shutdown(TestContext context)
throws Exception
context - The context of this test
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||