public abstract class AbstractQi4jBaseTest extends Object
Modifier and Type | Field and Description |
---|---|
protected Qi4j |
api |
protected Application |
application |
protected ApplicationDescriptor |
applicationModel |
protected Energy4Java |
qi4j |
protected Qi4jSPI |
spi |
Constructor and Description |
---|
AbstractQi4jBaseTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assemblyException(AssemblyException exception)
This method is called when there was an AssemblyException in the creation of the Zest application model.
|
protected abstract void |
defineApplication(ApplicationAssembly applicationAssembly)
Called by the superclass for the test to define the entire application, every layer, every module and all
the contents of each module.
|
protected void |
initApplication(Application app) |
protected ApplicationDescriptor |
newApplication() |
protected Application |
newApplicationInstance(ApplicationDescriptor applicationModel) |
void |
setUp() |
void |
tearDown() |
protected Qi4j api
protected Qi4jSPI spi
protected Energy4Java qi4j
protected ApplicationDescriptor applicationModel
protected Application application
protected abstract void defineApplication(ApplicationAssembly applicationAssembly) throws AssemblyException
applicationAssembly
- the ApplicationAssembly
to be populated.AssemblyException
protected Application newApplicationInstance(ApplicationDescriptor applicationModel)
protected ApplicationDescriptor newApplication() throws AssemblyException
AssemblyException
protected void assemblyException(AssemblyException exception) throws AssemblyException
Override this method to catch valid failures to place into satisfiedBy suites.
exception
- the exception thrown.AssemblyException
- The default implementation of this method will simply re-throw the exception.protected void initApplication(Application app) throws Exception
Exception