public abstract class AbstractPolygeneBaseTest extends Object
Modifier and Type | Field and Description |
---|---|
protected PolygeneAPI |
api |
protected Application |
application |
protected ApplicationDescriptor |
applicationModel |
NotYetImplemented.Rule |
notYetImplementedRule |
protected Energy4Java |
polygene |
protected PolygeneSPI |
spi |
Constructor and Description |
---|
AbstractPolygeneBaseTest() |
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 Polygene 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 Application |
newApplicationInstance(ApplicationDescriptor applicationModel) |
protected ApplicationDescriptor |
newApplicationModel() |
void |
setUp() |
void |
tearDown() |
public NotYetImplemented.Rule notYetImplementedRule
protected PolygeneAPI api
protected PolygeneSPI spi
protected Energy4Java polygene
protected ApplicationDescriptor applicationModel
protected Application application
protected abstract void defineApplication(ApplicationAssembly applicationAssembly) throws AssemblyException
applicationAssembly
- the ApplicationAssembly
to be populated.AssemblyException
- on invalid assemblyprotected Application newApplicationInstance(ApplicationDescriptor applicationModel)
protected ApplicationDescriptor newApplicationModel() 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