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

Since:
1.0
Version:
1.2.0

Constructor Summary
TestSession(TestConfigurationService testConfigurationService, TestSynchronizationService syncService)
          Constructs an instance of this class from the specified test configuration service and sync service parameters.
 
Method Summary
 void addGlobalTestRunListener(TestRunListenerService runListener)
          Add global test run listener with the specified run listener parameter.
 void close()
          Close.
 TestConfigurationService getTestConfigurationService()
          Gets the test configuration service value.
 void interrupt()
          Interrupt.
 boolean isInterrupted()
          Gets the interrupted (boolean) value.
 void removeGlobalTestRunListener(TestRunListenerService runListener)
          Remove global test run listener with the specified run listener parameter.
 void runMultipleTests(java.lang.String actionId, 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 actionId, 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)
Constructs an instance of this class from the specified test configuration service and sync service parameters.

Parameters:
testConfigurationService - The test configuration service (TestConfigurationService) parameter.
syncService - The sync service (TestSynchronizationService) parameter.
Method Detail

addGlobalTestRunListener

public void addGlobalTestRunListener(TestRunListenerService runListener)
Add global test run listener with the specified run listener parameter.

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

close

public void close()
Close.

Specified by:
close in interface TestSessionService

getTestConfigurationService

public TestConfigurationService getTestConfigurationService()
Gets the test configuration service value.

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

interrupt

public void interrupt()
Interrupt.

Specified by:
interrupt in interface TestSessionService

isInterrupted

public boolean isInterrupted()
Gets the interrupted (boolean) value.

Specified by:
isInterrupted in interface TestSessionService
Returns:
The interrupted (boolean) value.

removeGlobalTestRunListener

public void removeGlobalTestRunListener(TestRunListenerService runListener)
Remove global test run listener with the specified run listener parameter.

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

runMultipleTests

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

Specified by:
runMultipleTests in interface TestSessionService
Parameters:
actionId - The action id (String) parameter.
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 - IOException.

runSingleTest

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

Specified by:
runSingleTest in interface TestSessionService
Parameters:
actionId - The action id (String) parameter.
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 - IOException.

1.0.0

Copyright (c) 2007, 2009 IBM