1.0.0

org.eclipse.soda.dk.testcontroller
Class TestSession

java.lang.Object
  extended by org.eclipse.soda.dk.testcontroller.TestSession
All Implemented Interfaces:
TestSessionService

public class TestSession
extends java.lang.Object
implements TestSessionService

Version:
1.0.0

Constructor Summary
TestSession(TestConfigurationService testConfigurationService, TestSynchronizationService syncService)
           
 
Method Summary
 void addGlobalTestRunListener(TestRunListenerService runListener)
          Registers a TestRunListener
 void close()
          Close.
 TestConfigurationService getTestConfigurationService()
          Gets the test configuration service value.
 void interrupt()
          Interrupt.
 boolean isInterrupted()
           
 void removeGlobalTestRunListener(TestRunListenerService runListener)
          Unregisters a TestListener
 void runMultipleTests(java.lang.String runId, java.lang.String filter, java.lang.String className, java.util.Dictionary properties, TestRunListenerService runListener)
          Run multiple tests with the specified run id, filter, class name, properties and run listener parameters.
 void runSingleTest(java.lang.String runId, java.lang.String filter, java.lang.String className, java.util.Dictionary properties, TestRunListenerService runListener)
          Run single test with the specified run id, filter, class name, properties and run listener parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSession

public TestSession(TestConfigurationService testConfigurationService,
                   TestSynchronizationService syncService)
Parameters:
testConfigurationService -
Method Detail

addGlobalTestRunListener

public void addGlobalTestRunListener(TestRunListenerService runListener)
Description copied from interface: TestSessionService
Registers a TestRunListener

Specified by:
addGlobalTestRunListener in interface TestSessionService
Parameters:
runListener - The global run listener (TestRunListenerService) parameter.
See Also:
TestSessionService.removeGlobalTestRunListener(TestRunListenerService)

removeGlobalTestRunListener

public void removeGlobalTestRunListener(TestRunListenerService runListener)
Description copied from interface: TestSessionService
Unregisters a TestListener

Specified by:
removeGlobalTestRunListener in interface TestSessionService
Parameters:
runListener - The global run listener (TestRunListenerService) parameter.
See Also:
TestSessionService.addGlobalTestRunListener(TestRunListenerService)

getTestConfigurationService

public TestConfigurationService getTestConfigurationService()
Description copied from interface: TestSessionService
Gets the test configuration service value.

Specified by:
getTestConfigurationService in interface TestSessionService
Returns:
The test configuration service (TestConfigurationService) value.

runSingleTest

public void runSingleTest(java.lang.String runId,
                          java.lang.String filter,
                          java.lang.String className,
                          java.util.Dictionary properties,
                          TestRunListenerService runListener)
                   throws InvalidSyntaxException,
                          java.io.IOException
Description copied from interface: TestSessionService
Run single test with the specified run id, filter, class name, properties and run listener parameters.

Specified by:
runSingleTest in interface TestSessionService
Parameters:
runId - The run id (String) parameter.
filter - The filter (String) parameter.
className - The class name (String) parameter.
properties - The properties (Dictionary) parameter.
runListener - The run listener (TestRunListenerService) parameter.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.
java.io.IOException

runMultipleTests

public void runMultipleTests(java.lang.String runId,
                             java.lang.String filter,
                             java.lang.String className,
                             java.util.Dictionary properties,
                             TestRunListenerService runListener)
                      throws InvalidSyntaxException,
                             java.io.IOException
Description copied from interface: TestSessionService
Run multiple tests with the specified run id, filter, class name, properties and run listener parameters.

Specified by:
runMultipleTests in interface TestSessionService
Parameters:
runId - The run id (String) parameter.
filter - The filter (String) parameter.
className - The class name (String) parameter.
properties - The properties (Dictionary) parameter.
runListener - The run listener (TestRunListenerService) parameter.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.
java.io.IOException

interrupt

public void interrupt()
Description copied from interface: TestSessionService
Interrupt.

Specified by:
interrupt in interface TestSessionService

isInterrupted

public boolean isInterrupted()
Specified by:
isInterrupted in interface TestSessionService
Returns:
the interrupted status

close

public void close()
Description copied from interface: TestSessionService
Close.

Specified by:
close in interface TestSessionService

1.0.0

Copyright (c) 2007 IBM