org.qi4j.test
Class AbstractQi4jScenarioTest
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractQi4jScenarioTest
public AbstractQi4jScenarioTest()
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()