com.mycila.testing.plugin.annotation
Class AnnotationTestPlugin

java.lang.Object
  extended by com.mycila.testing.core.plugin.DefaultTestPlugin
      extended by 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)

Constructor Summary
AnnotationTestPlugin()
           
 
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 com.mycila.testing.core.plugin.DefaultTestPlugin
afterClass, getAfter, getBefore, prepareTestInstance, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationTestPlugin

public AnnotationTestPlugin()
Method Detail

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.