ch.tatool.test.swing
Class ModuleRunner

java.lang.Object
  extended by ch.tatool.app.TestApp
      extended by 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.


Field Summary
 
Fields inherited from class ch.tatool.app.TestApp
dataDirName
 
Constructor Summary
ModuleRunner()
           
 
Method Summary
protected  Executable createExecutable()
          Create an executable to run.
protected  Module createModule(UserAccount account)
          Overwritten to set a memory initializer that sets the Element returned by createRootElement()
protected  Element createRootElement()
          Returns a simple test executable that return SUCCESS
static void main(String[] args)
           
 
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
 

Constructor Detail

ModuleRunner

public ModuleRunner()
Method Detail

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.