jsystem.framework.system
Class SystemManagerImpl

java.lang.Object
  extended byjsystem.framework.system.SystemManagerImpl
All Implemented Interfaces:
SystemObjectManager, TestListener

public class SystemManagerImpl
extends Object
implements SystemObjectManager, TestListener


Method Summary
 void addError(Test test, Throwable t)
           
 void addFailure(Test test, AssertionFailedError t)
           
 void endTest(Test test)
           
static SystemManagerImpl getInstance()
           
 SystemObject getSystemObject(String name)
          Get the system object using the name and a '/sut' as the default path.
 SystemObject getSystemObject(String path, String name)
          Get the system object using the name and its path.
 void startTest(Test test)
           
protected  boolean useReloadingTestSuiteLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SystemManagerImpl getInstance()

getSystemObject

public SystemObject getSystemObject(String name)
                             throws Exception
Description copied from interface: SystemObjectManager
Get the system object using the name and a '/sut' as the default path.

Specified by:
getSystemObject in interface SystemObjectManager
Parameters:
name - the name of the object
Returns:
SystemObject The defined system object.
Throws:
Exception

getSystemObject

public SystemObject getSystemObject(String path,
                                    String name)
                             throws Exception
Description copied from interface: SystemObjectManager
Get the system object using the name and its path.

Specified by:
getSystemObject in interface SystemObjectManager
Parameters:
path - the XPath to the object
name - the object name
Returns:
SystemObject The defined system object.
Throws:
Exception

useReloadingTestSuiteLoader

protected boolean useReloadingTestSuiteLoader()

addError

public void addError(Test test,
                     Throwable t)
Specified by:
addError in interface TestListener

addFailure

public void addFailure(Test test,
                       AssertionFailedError t)
Specified by:
addFailure in interface TestListener

endTest

public void endTest(Test test)
Specified by:
endTest in interface TestListener

startTest

public void startTest(Test test)
Specified by:
startTest in interface TestListener