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 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 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.