de.akquinet.jbosscc.needle.junit.testrule
Class DatabaseTestRule

java.lang.Object
  extended by de.akquinet.jbosscc.needle.db.DatabaseTestcase
      extended by de.akquinet.jbosscc.needle.junit.testrule.DatabaseTestRule
All Implemented Interfaces:
InjectionProvider<Object>, InjectionVerifier, org.junit.rules.TestRule

public class DatabaseTestRule
extends DatabaseTestcase
implements org.junit.rules.TestRule


Constructor Summary
DatabaseTestRule()
           
DatabaseTestRule(DBOperation dbOperation)
           
DatabaseTestRule(String persistenceUnitName)
           
DatabaseTestRule(String persistenceUnitName, DBOperation dbOperation)
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
           
 
Methods inherited from class de.akquinet.jbosscc.needle.db.DatabaseTestcase
after, before, getEntityManager, getEntityManagerFactory, getInjectedObject, getKey, getTransactionHelper, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTestRule

public DatabaseTestRule()
See Also:
DatabaseTestcase.DatabaseTestcase()

DatabaseTestRule

public DatabaseTestRule(DBOperation dbOperation)
See Also:
DatabaseTestcase.DatabaseTestcase(DBOperation)

DatabaseTestRule

public DatabaseTestRule(String persistenceUnitName,
                        DBOperation dbOperation)
See Also:
DatabaseTestcase.DatabaseTestcase(String, DBOperation)

DatabaseTestRule

public DatabaseTestRule(String persistenceUnitName)
See Also:
DatabaseTestcase.DatabaseTestcase(String)
Method Detail

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
                                               org.junit.runner.Description description)
Specified by:
apply in interface org.junit.rules.TestRule


Copyright © 2013 akquinet AG. All Rights Reserved.