|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.test.framework.driver.TestSuite
public class TestSuite
A test suite is a test driver container that expose itself as a test driver.
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 |
---|
protected final java.util.Map entries
protected final TestContainerInfo info
Constructor Detail |
---|
public TestSuite(java.lang.String id)
Method Detail |
---|
public TestDriver getDriver(java.lang.String testId)
TestDriverContainer
getDriver
in interface TestDriverContainer
public void addDriver(TestDriver test) throws java.lang.IllegalArgumentException
TestDriverContainer
addDriver
in interface TestDriverContainer
java.lang.IllegalArgumentException
- if the driver is null or already registeredpublic void removeDriver(TestDriver test) throws java.lang.IllegalArgumentException
TestDriverContainer
removeDriver
in interface TestDriverContainer
java.lang.IllegalArgumentException
- if the driver is null or does not existpublic TestItemInfo getInfo()
TestDriver
getInfo
in interface TestDriver
public DriverResponse invoke(java.lang.String testId, DriverCommand cmd) throws TestDriverException
TestDriver
invoke
in interface TestDriver
TestDriverException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |