org.unitils.spring.util
Class SpringUnitilsAdaptorTestExecutionListener

java.lang.Object
  extended by org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
All Implemented Interfaces:
org.springframework.test.context.TestExecutionListener

public class SpringUnitilsAdaptorTestExecutionListener
extends Object
implements org.springframework.test.context.TestExecutionListener


Constructor Summary
SpringUnitilsAdaptorTestExecutionListener()
           
 
Method Summary
 void afterTestMethod(org.springframework.test.context.TestContext testContext)
           
 void afterTestTearDown(org.springframework.test.context.TestContext testContext)
           
 void beforeTestMethod(org.springframework.test.context.TestContext testContext)
           
 void beforeTestSetUp(org.springframework.test.context.TestContext testContext)
           
protected  TestListener getTestListener()
           
protected  Unitils getUnitils()
          Returns the default singleton instance of Unitils
 void prepareTestInstance(org.springframework.test.context.TestContext testContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringUnitilsAdaptorTestExecutionListener

public SpringUnitilsAdaptorTestExecutionListener()
Method Detail

prepareTestInstance

public void prepareTestInstance(org.springframework.test.context.TestContext testContext)
                         throws Exception
Specified by:
prepareTestInstance in interface org.springframework.test.context.TestExecutionListener
Throws:
Exception

beforeTestSetUp

public void beforeTestSetUp(org.springframework.test.context.TestContext testContext)
                     throws Exception
Throws:
Exception

beforeTestMethod

public void beforeTestMethod(org.springframework.test.context.TestContext testContext)
                      throws Exception
Specified by:
beforeTestMethod in interface org.springframework.test.context.TestExecutionListener
Throws:
Exception

afterTestMethod

public void afterTestMethod(org.springframework.test.context.TestContext testContext)
                     throws Exception
Specified by:
afterTestMethod in interface org.springframework.test.context.TestExecutionListener
Throws:
Exception

afterTestTearDown

public void afterTestTearDown(org.springframework.test.context.TestContext testContext)
                       throws Exception
Throws:
Exception

getTestListener

protected TestListener getTestListener()
Returns:
The Unitils test listener

getUnitils

protected Unitils getUnitils()
Returns the default singleton instance of Unitils

Returns:
the Unitils instance, not null


Copyright © 2011. All Rights Reserved.