unitee.client
Class RemoteTestManagerStub
java.lang.Object
|
+--unitee.client.AbstractStreamable
|
+--unitee.client.RemoteTestManagerStub
- public class RemoteTestManagerStub
- extends AbstractStreamable
- implements TestManager
A remote stub implementation of the TestManager interface.
- See Also:
RemoteMethod
Method Summary |
Test |
findTest(java.lang.String qualifiedName)
Finds a test. |
TestSuite |
getRootTestSuite()
Returns a built TestSuite object which is the root test
suite in the system. |
TestFactory |
getTestFactory()
Returns the factory with which the client can create Test related
objects. |
void |
listTest(Test test,
java.io.PrintStream output,
boolean printHTML)
Lists the test identified by qualifiedName, its subtests and parameters. |
void |
runTest(Test test,
java.io.PrintStream output,
boolean printHTML)
Runs the test. |
void |
saveChanges()
Saves the changes made to the root test suite and its subtests to a
persistent store. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RemoteTestManagerStub
public RemoteTestManagerStub()
getRootTestSuite
public TestSuite getRootTestSuite()
- Description copied from interface: TestManager
- Returns a built TestSuite object which is the root test
suite in the system.
- Specified by:
- getRootTestSuite in interface TestManager
- Tags copied from interface: TestManager
- Returns:
- TestSuite the root test suite
saveChanges
public void saveChanges()
- Description copied from interface: TestManager
- Saves the changes made to the root test suite and its subtests to a
persistent store. The state of any of the tests could have changed by
any other thread/client. The method saves the tree as it is NOW.
- Specified by:
- saveChanges in interface TestManager
findTest
public Test findTest(java.lang.String qualifiedName)
- Description copied from interface: TestManager
- Finds a test. This method is a convenient method (mostly in terms of
network traffic) that is logically equivilent to
getRootTestSuite().findTest(qualifiedName).
- Specified by:
- findTest in interface TestManager
listTest
public void listTest(Test test,
java.io.PrintStream output,
boolean printHTML)
- Description copied from interface: TestManager
- Lists the test identified by qualifiedName, its subtests and parameters.
- Specified by:
- listTest in interface TestManager
- Tags copied from interface: TestManager
- Parameters:
test
- the test to be inspectedoutput
- to which text will be printed toprintHTML
- weather to emit output as HTML or not
runTest
public void runTest(Test test,
java.io.PrintStream output,
boolean printHTML)
- Description copied from interface: TestManager
- Runs the test. Called by Unitee clients. A client specifies the tests
(if using a compound test objects) and the report
depending on the type of the client (command prompt,
servlet). Clients should not call test.test(report) directly
,as the processing of the test need to be on unitee's
JVM.
- Specified by:
- runTest in interface TestManager
- Tags copied from interface: TestManager
- Parameters:
test
- the test object to be testedoutput
- where to print the test resultsprintHTML
- true if the output should be HTML formatted
getTestFactory
public TestFactory getTestFactory()
- Description copied from interface: TestManager
- Returns the factory with which the client can create Test related
objects.
- Specified by:
- getTestFactory in interface TestManager
- Tags copied from interface: TestManager
- Returns:
- TestFactory
- Throws:
- -