org.qi4j.test
Class AbstractQi4jScenarioTest

java.lang.Object
  extended by org.qi4j.test.AbstractQi4jScenarioTest
All Implemented Interfaces:
Assembler

public abstract class AbstractQi4jScenarioTest
extends Object
implements Assembler

Base class for Qi4j scenario tests. This will create one Qi4j application per class instead of per test.


Field Summary
protected static Qi4j api
           
protected static ApplicationSPI application
           
protected static ApplicationModelSPI applicationModel
           
protected static Assembler assembler
           
protected static ModuleSPI moduleInstance
           
protected static ObjectBuilderFactory objectBuilderFactory
           
protected static Energy4Java qi4j
           
protected static QueryBuilderFactory queryBuilderFactory
           
protected static ServiceFinder serviceLocator
           
protected static Qi4jSPI spi
           
protected static TransientBuilderFactory transientBuilderFactory
           
protected static UnitOfWorkFactory unitOfWorkFactory
           
protected static ValueBuilderFactory valueBuilderFactory
           
 
Constructor Summary
AbstractQi4jScenarioTest()
           
 
Method Summary
protected static 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 static void initApplication(Application app)
           
protected static ApplicationModelSPI newApplication()
           
static 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 static Qi4j api

spi

protected static Qi4jSPI spi

qi4j

protected static Energy4Java qi4j

applicationModel

protected static ApplicationModelSPI applicationModel

application

protected static ApplicationSPI application

transientBuilderFactory

protected static TransientBuilderFactory transientBuilderFactory

objectBuilderFactory

protected static ObjectBuilderFactory objectBuilderFactory

valueBuilderFactory

protected static ValueBuilderFactory valueBuilderFactory

unitOfWorkFactory

protected static UnitOfWorkFactory unitOfWorkFactory

queryBuilderFactory

protected static QueryBuilderFactory queryBuilderFactory

serviceLocator

protected static ServiceFinder serviceLocator

moduleInstance

protected static ModuleSPI moduleInstance

assembler

protected static Assembler assembler
Constructor Detail

AbstractQi4jScenarioTest

public AbstractQi4jScenarioTest()
Method Detail

setUp

public static void setUp()
                  throws Exception
Throws:
Exception

newApplication

protected static ApplicationModelSPI newApplication()
                                             throws AssemblyException
Throws:
AssemblyException

assemblyException

protected static 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 static void initApplication(Application app)
                               throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

getLog

protected org.slf4j.Logger getLog()