de.akquinet.jbosscc.needle.testng
Class DatabaseTestcase

java.lang.Object
  extended by de.akquinet.jbosscc.needle.db.DatabaseTestcase
      extended by de.akquinet.jbosscc.needle.testng.DatabaseTestcase
All Implemented Interfaces:
InjectionProvider<Object>, InjectionVerifier

public class DatabaseTestcase
extends DatabaseTestcase

See Also:
DatabaseTestcase

Constructor Summary
DatabaseTestcase()
           
DatabaseTestcase(Class<?>... clazzes)
          Deprecated. 
DatabaseTestcase(DBOperation dbOperation)
           
DatabaseTestcase(DBOperation dbOperation, Class<?>... clazzes)
          Deprecated. 
DatabaseTestcase(String persistenceUnitName)
           
DatabaseTestcase(String persistenceUnitName, DBOperation dbOperation)
           
 
Method Summary
 void after()
          Execute tear down database operation, if configured.
 void before()
          Execute setup database operation, if configured.
 
Methods inherited from class de.akquinet.jbosscc.needle.db.DatabaseTestcase
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

DatabaseTestcase

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

DatabaseTestcase

@Deprecated
public DatabaseTestcase(Class<?>... clazzes)
Deprecated. 

See Also:
DatabaseTestcase.DatabaseTestcase(Class...)

DatabaseTestcase

@Deprecated
public DatabaseTestcase(DBOperation dbOperation,
                                   Class<?>... clazzes)
Deprecated. 

See Also:
DatabaseTestcase.DatabaseTestcase(DBOperation, Class...)

DatabaseTestcase

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

DatabaseTestcase

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

DatabaseTestcase

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

after

public void after()
           throws Exception
Execute tear down database operation, if configured.

Overrides:
after in class DatabaseTestcase
Throws:
Exception - thrown if an error occurs

before

public void before()
            throws Exception
Execute setup database operation, if configured.

Overrides:
before in class DatabaseTestcase
Throws:
Exception - thrown if an error occurs


Copyright © 2013 akquinet AG. All Rights Reserved.