de.akquinet.jbosscc.needle.testng
Class AbstractNeedleTestcase

java.lang.Object
  extended by de.akquinet.jbosscc.needle.NeedleTestcase
      extended by de.akquinet.jbosscc.needle.testng.AbstractNeedleTestcase

public abstract class AbstractNeedleTestcase
extends NeedleTestcase

See Also:
NeedleTestcase

Constructor Summary
AbstractNeedleTestcase(InjectionProvider<?>... injectionProvider)
          Creates an instance of NeedleTestcase with optional additional injection provider.
 
Method Summary
 void afterNeedleTestcase()
           
 void beforeNeedleTestcase()
           
protected  javax.persistence.EntityManager getEntityManager()
          Returns the EntityManager, if the test is constructed with a DatabaseTestcase instance or null otherwise.
 
Methods inherited from class de.akquinet.jbosscc.needle.NeedleTestcase
addInjectionProvider, getInjectedObject, getMockProvider, initInstance, initTestcase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNeedleTestcase

public AbstractNeedleTestcase(InjectionProvider<?>... injectionProvider)
Creates an instance of NeedleTestcase with optional additional injection provider.

Parameters:
injectionProvider - optional additional injection provider
See Also:
InjectionProvider
Method Detail

beforeNeedleTestcase

public final void beforeNeedleTestcase()
                                throws Exception
Throws:
Exception

afterNeedleTestcase

public final void afterNeedleTestcase()
                               throws Exception
Throws:
Exception

getEntityManager

protected javax.persistence.EntityManager getEntityManager()
Returns the EntityManager, if the test is constructed with a DatabaseTestcase instance or null otherwise.

Returns:
EntityManager or null


Copyright © 2013 akquinet AG. All Rights Reserved.