org.ofbiz.testtools
Class TestRunContainer

java.lang.Object
  extended by org.ofbiz.testtools.TestRunContainer
All Implemented Interfaces:
Container

public class TestRunContainer
extends java.lang.Object
implements Container

A Container implementation to run the tests configured through this testtools stuff.


Field Summary
protected  java.lang.String component
           
protected  java.lang.String configFile
           
static java.lang.String logDir
           
protected  java.lang.String logLevel
           
static java.lang.String module
           
protected  java.lang.String suiteName
           
protected  java.lang.String testCase
           
 
Constructor Summary
TestRunContainer()
           
 
Method Summary
static java.lang.String getProgress(long total, long idx)
           
 void init(java.lang.String[] args, java.lang.String configFile)
          Initialize the container
 boolean start()
          Start the container
 void stop()
          Stop the container
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

logDir

public static final java.lang.String logDir
See Also:
Constant Field Values

configFile

protected java.lang.String configFile

component

protected java.lang.String component

suiteName

protected java.lang.String suiteName

testCase

protected java.lang.String testCase

logLevel

protected java.lang.String logLevel
Constructor Detail

TestRunContainer

public TestRunContainer()
Method Detail

init

public void init(java.lang.String[] args,
                 java.lang.String configFile)
Description copied from interface: Container
Initialize the container

Specified by:
init in interface Container
Parameters:
args - args from calling class
configFile - Location of master OFBiz configuration file
See Also:
Container.init(java.lang.String[], java.lang.String)

start

public boolean start()
              throws ContainerException
Description copied from interface: Container
Start the container

Specified by:
start in interface Container
Returns:
true if server started
Throws:
ContainerException

stop

public void stop()
          throws ContainerException
Description copied from interface: Container
Stop the container

Specified by:
stop in interface Container
Throws:
ContainerException

getProgress

public static java.lang.String getProgress(long total,
                                           long idx)