ch.tatool.test.swing
Class ModuleRunner
java.lang.Object
ch.tatool.app.TestApp
ch.tatool.test.swing.ModuleRunner
- Direct Known Subclasses:
- SwingModuleRunner
public class ModuleRunner
- extends TestApp
Provides support for running a module without a display
This tester provides two methods to overwrite: getExecutable or getRootElement.
If getExecutable is overwritten the executable is run exactly once. getRootElement
on the other hand allows you arbitarily defining the Element hierarchy you want to run.
| Methods inherited from class ch.tatool.app.TestApp |
createAccount, createAccountProperties, createBinaryModuleProperties, createModuleExporters, createModuleProperties, deleteData, getCtx, getDataExportService, getDataService, getExecutionService, getModuleService, getUserAccountService, runModule, startApplication |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModuleRunner
public ModuleRunner()
createModule
protected Module createModule(UserAccount account)
- Overwritten to set a memory initializer that sets the Element returned by createRootElement()
- Overrides:
createModule in class TestApp
createRootElement
protected Element createRootElement()
- Returns a simple test executable that return SUCCESS
createExecutable
protected Executable createExecutable()
- Create an executable to run.
Overwrite this method if you simply want to run an executable
main
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.