org.unitils.database
Class DatabaseModule.DatabaseTestListener

java.lang.Object
  extended by org.unitils.core.TestListener
      extended by org.unitils.database.DatabaseModule.DatabaseTestListener
Enclosing class:
DatabaseModule

protected class DatabaseModule.DatabaseTestListener
extends TestListener

The TestListener for this module


Constructor Summary
protected DatabaseModule.DatabaseTestListener()
           
 
Method Summary
 void afterTestTearDown(Object testObject, Method testMethod)
          Invoked after the test tear down (eg @After).
 void beforeTestSetUp(Object testObject, Method testMethod)
          Invoked before the test setup (eg @Before) is run.
 
Methods inherited from class org.unitils.core.TestListener
afterCreateTestObject, afterTestMethod, beforeTestClass, beforeTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseModule.DatabaseTestListener

protected DatabaseModule.DatabaseTestListener()
Method Detail

beforeTestSetUp

public void beforeTestSetUp(Object testObject,
                            Method testMethod)
Description copied from class: TestListener
Invoked before the test setup (eg @Before) is run. This can be overridden to for example initialize the test-fixture.

Overrides:
beforeTestSetUp in class TestListener
Parameters:
testObject - The test instance, not null
testMethod - The test method, not null

afterTestTearDown

public void afterTestTearDown(Object testObject,
                              Method testMethod)
Description copied from class: TestListener
Invoked after the test tear down (eg @After). This can be overridden to for example perform extra cleanup after the test.

Overrides:
afterTestTearDown in class TestListener
Parameters:
testObject - The test instance, not null
testMethod - The test method, not null


Copyright © 2011. All Rights Reserved.