com.mycila.testing.plugin.annotation
Class AnnotationTestPlugin
java.lang.Object
com.mycila.testing.core.plugin.DefaultTestPlugin
com.mycila.testing.plugin.annotation.AnnotationTestPlugin
- All Implemented Interfaces:
- com.mycila.plugin.api.Plugin, TestPlugin
public final class AnnotationTestPlugin
- extends DefaultTestPlugin
- Author:
- Mathieu Carbou (mathieu.carbou@gmail.com)
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationTestPlugin
public AnnotationTestPlugin()
beforeTest
public void beforeTest(TestExecution testExecution)
throws Exception
- Description copied from interface:
TestPlugin
- This method will be called on each plugin in order of dependency to execute code required before a test method can run.
- Specified by:
beforeTest in interface TestPlugin- Overrides:
beforeTest in class DefaultTestPlugin
- Parameters:
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
- Throws:
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
afterTest
public void afterTest(TestExecution testExecution)
throws Exception
- Description copied from interface:
TestPlugin
- This method will be called on each plugin in order of dependency after each test method has finished, even if the method failed.
- Specified by:
afterTest in interface TestPlugin- Overrides:
afterTest in class DefaultTestPlugin
- Parameters:
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
- Throws:
Exception - If anything wrong occurs in plugin execution. Exception will be catched by the testing API.
Copyright © 2008-2011 Mycila. All Rights Reserved.