|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mycila.testing.core.plugin.DefaultTestPlugin
public class DefaultTestPlugin
Adapter implementation of a Test Plugin which does nothing.
It is strongly adviced that plugins extends this class
instead of implementing directly TestPlugin interfaces,
to avoid any code break when changing or enhancing the API.
| Constructor Summary | |
|---|---|
DefaultTestPlugin()
|
|
| 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. |
List<String> |
getAfter()
|
List<String> |
getBefore()
|
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTestPlugin()
| Method Detail |
|---|
public void prepareTestInstance(TestContext context)
throws Exception
TestPlugin
prepareTestInstance in interface TestPlugincontext - The test context, relative to one test instance
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.public List<String> getBefore()
getBefore in interface com.mycila.plugin.api.Pluginpublic List<String> getAfter()
getAfter in interface com.mycila.plugin.api.Plugin
public void beforeTest(TestExecution testExecution)
throws Exception
TestPlugin
beforeTest in interface TestPlugintestExecution - 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.
public void afterTest(TestExecution testExecution)
throws Exception
TestPlugin
afterTest in interface TestPlugintestExecution - 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.
public void afterClass(TestContext context)
throws Exception
TestPlugin
afterClass in interface TestPlugincontext - The context of this test
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
public void shutdown(TestContext context)
throws Exception
TestPlugin
shutdown in interface TestPlugincontext - 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 | |||||||||