public class TestApp extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
dataDirName
Holds the directory name that will contain created data.
|
Constructor and Description |
---|
TestApp() |
Modifier and Type | Method and Description |
---|---|
protected UserAccount |
createAccount()
Creates and initializes a user account.
|
protected Map<String,String> |
createAccountProperties()
Get the Account properties to use for account creation.
|
protected Map<String,byte[]> |
createBinaryModuleProperties()
Create binary module properties.
|
protected Module |
createModule(UserAccount account)
Creates an empty persisted module instance.
|
protected Map<String,DataExporter> |
createModuleExporters()
Create module exporters.
|
protected Map<String,String> |
createModuleProperties()
Create module properties used for module creation.
|
void |
deleteData()
Clears the data created by the test application, that is,
all user accounts created by it
|
org.springframework.context.ApplicationContext |
getCtx() |
DataExportService |
getDataExportService() |
DataService |
getDataService() |
ExecutionService |
getExecutionService() |
GuiController |
getGuiController() |
ModuleService |
getModuleService() |
UserAccountService |
getUserAccountService() |
void |
runModule()
Call this method to run the module
|
void |
startApplication()
Creates all services and a default test account
|
protected String dataDirName
public void startApplication()
public void deleteData()
public void runModule()
protected UserAccount createAccount()
protected Map<String,String> createAccountProperties()
protected Module createModule(UserAccount account)
protected Map<String,String> createModuleProperties()
protected Map<String,byte[]> createBinaryModuleProperties()
protected Map<String,DataExporter> createModuleExporters()
public org.springframework.context.ApplicationContext getCtx()
public GuiController getGuiController()
public ModuleService getModuleService()
public UserAccountService getUserAccountService()
public ExecutionService getExecutionService()
public DataService getDataService()
public DataExportService getDataExportService()
Copyright © 2013. All Rights Reserved.