org.unitils.spring.util
Class SpringUnitilsAdaptorTestExecutionListener
java.lang.Object
org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
- All Implemented Interfaces:
- org.springframework.test.context.TestExecutionListener
public class SpringUnitilsAdaptorTestExecutionListener
- extends java.lang.Object
- implements org.springframework.test.context.TestExecutionListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringUnitilsAdaptorTestExecutionListener
public SpringUnitilsAdaptorTestExecutionListener()
prepareTestInstance
public void prepareTestInstance(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
- Specified by:
prepareTestInstance in interface org.springframework.test.context.TestExecutionListener
- Throws:
java.lang.Exception
beforeTestSetUp
public void beforeTestSetUp(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
- Specified by:
beforeTestMethod in interface org.springframework.test.context.TestExecutionListener
- Throws:
java.lang.Exception
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
- Specified by:
afterTestMethod in interface org.springframework.test.context.TestExecutionListener
- Throws:
java.lang.Exception
afterTestTearDown
public void afterTestTearDown(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
- Throws:
java.lang.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 © 2009. All Rights Reserved.