org.jboss.portal.test.framework.driver
Class TestSuite

java.lang.Object
  extended by org.jboss.portal.test.framework.driver.TestSuite
All Implemented Interfaces:
TestDriver, TestDriverContainer
Direct Known Subclasses:
RemoteTestSuite

public class TestSuite
extends java.lang.Object
implements TestDriverContainer

A test suite is a test driver container that expose itself as a test driver.

Version:
$Revision: 7228 $
Author:
Julien Viet

Field Summary
protected  java.util.Map entries
          .
protected  TestContainerInfo info
          .
 
Constructor Summary
TestSuite(java.lang.String id)
           
 
Method Summary
 void addDriver(TestDriver test)
          Add a driver.
 TestDriver getDriver(java.lang.String testId)
          Return a driver that is able to understand the specified id.
 TestItemInfo getInfo()
          Returns the meta information exposed by the driver.
 DriverResponse invoke(java.lang.String testId, DriverCommand cmd)
          Execute a command of the testing protocol.
 void removeDriver(TestDriver test)
          Remove a driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entries

protected final java.util.Map entries
.


info

protected final TestContainerInfo info
.

Constructor Detail

TestSuite

public TestSuite(java.lang.String id)
Method Detail

getDriver

public TestDriver getDriver(java.lang.String testId)
Description copied from interface: TestDriverContainer
Return a driver that is able to understand the specified id.

Specified by:
getDriver in interface TestDriverContainer
Returns:

addDriver

public void addDriver(TestDriver test)
               throws java.lang.IllegalArgumentException
Description copied from interface: TestDriverContainer
Add a driver.

Specified by:
addDriver in interface TestDriverContainer
Throws:
java.lang.IllegalArgumentException - if the driver is null or already registered

removeDriver

public void removeDriver(TestDriver test)
                  throws java.lang.IllegalArgumentException
Description copied from interface: TestDriverContainer
Remove a driver.

Specified by:
removeDriver in interface TestDriverContainer
Throws:
java.lang.IllegalArgumentException - if the driver is null or does not exist

getInfo

public TestItemInfo getInfo()
Description copied from interface: TestDriver
Returns the meta information exposed by the driver.

Specified by:
getInfo in interface TestDriver

invoke

public DriverResponse invoke(java.lang.String testId,
                             DriverCommand cmd)
                      throws TestDriverException
Description copied from interface: TestDriver
Execute a command of the testing protocol.

Specified by:
invoke in interface TestDriver
Throws:
TestDriverException