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