org.qi4j.test
Class AbstractQi4jTest

java.lang.Object
  extended by org.qi4j.test.AbstractQi4jTest
All Implemented Interfaces:
Assembler
Direct Known Subclasses:
AbstractAnyQueryTest, AbstractEntityStoreTest

public abstract class AbstractQi4jTest
extends Object
implements Assembler

Base class for Composite tests.


Field Summary
protected  Qi4j api
           
protected  ApplicationSPI application
           
protected  ApplicationModelSPI applicationModel
           
protected  ModuleSPI moduleInstance
           
protected  ObjectBuilderFactory objectBuilderFactory
           
protected  Energy4Java qi4j
           
protected  QueryBuilderFactory queryBuilderFactory
           
protected  ServiceFinder serviceLocator
           
protected  Qi4jSPI spi
           
protected  TransientBuilderFactory transientBuilderFactory
           
protected  UnitOfWorkFactory unitOfWorkFactory
           
protected  ValueBuilderFactory valueBuilderFactory
           
 
Constructor Summary
AbstractQi4jTest()
           
 
Method Summary
protected  void assemblyException(AssemblyException exception)
          This method is called when there was an AssemblyException in the creation of the Qi4j application model.
protected  org.slf4j.Logger getLog()
           
protected  void initApplication(Application app)
           
protected  ApplicationModelSPI newApplication()
           
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.bootstrap.Assembler
assemble
 

Field Detail

api

protected Qi4j api

spi

protected Qi4jSPI spi

qi4j

protected Energy4Java qi4j

applicationModel

protected ApplicationModelSPI applicationModel

application

protected ApplicationSPI application

transientBuilderFactory

protected TransientBuilderFactory transientBuilderFactory

objectBuilderFactory

protected ObjectBuilderFactory objectBuilderFactory

valueBuilderFactory

protected ValueBuilderFactory valueBuilderFactory

unitOfWorkFactory

protected UnitOfWorkFactory unitOfWorkFactory

queryBuilderFactory

protected QueryBuilderFactory queryBuilderFactory

serviceLocator

protected ServiceFinder serviceLocator

moduleInstance

protected ModuleSPI moduleInstance
Constructor Detail

AbstractQi4jTest

public AbstractQi4jTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

newApplication

protected ApplicationModelSPI newApplication()
                                      throws AssemblyException
Throws:
AssemblyException

assemblyException

protected void assemblyException(AssemblyException exception)
                          throws AssemblyException
This method is called when there was an AssemblyException in the creation of the Qi4j application model.

Override this method to catch valid failures to place into satisfiedBy suites.

Parameters:
exception - the exception thrown.
Throws:
AssemblyException - The default implementation of this method will simply re-throw the exception.

initApplication

protected void initApplication(Application app)
                        throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

getLog

protected org.slf4j.Logger getLog()