org.unitils.orm.common
Class OrmModule.OrmTestListener

java.lang.Object
  extended by org.unitils.core.TestListener
      extended by org.unitils.orm.common.OrmModule.OrmTestListener
Direct Known Subclasses:
HibernateModule.HibernateTestListener, JpaModule.JpaTestListener
Enclosing class:
OrmModule<ORM_PERSISTENCE_UNIT,ORM_PERSISTENCE_CONTEXT,PROVIDER_CONFIGURATION_OBJECT,PERSISTENCE_UNIT_CONFIG_ANNOTATION extends Annotation,ORM_CONFIG extends OrmConfig,ORM_PERSISTENCE_UNIT_CONFIG_LOADER extends ResourceConfigLoader<ORM_CONFIG>>

protected class OrmModule.OrmTestListener
extends TestListener

The TestListener for this module


Constructor Summary
protected OrmModule.OrmTestListener()
           
 
Method Summary
 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, afterTestTearDown, beforeTestClass, beforeTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrmModule.OrmTestListener

protected OrmModule.OrmTestListener()
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


Copyright © 2011. All Rights Reserved.