org.jboss.portal.test.framework.driver.remote
Class RemoteTestCase

java.lang.Object
  extended by org.jboss.portal.test.framework.driver.remote.RemoteTestCase
All Implemented Interfaces:
RemoteTestDriver, TestDriver
Direct Known Subclasses:
HTTPTestCase, WebTestCase

public abstract class RemoteTestCase
extends java.lang.Object
implements RemoteTestDriver

Defines an http test case working from the server side point of view.

Version:
$Revision: 5636 $
Author:
Julien Viet

Field Summary
protected  TestContext context
          The test context.
protected  java.lang.String testCaseId
          The test id.
protected  TestDriverContainer testDriverContainer
          The driver registry, in the future we should remove that and use some kind of external wiring mechanism.
protected  TestInfo testInfo
          The test info.
 
Fields inherited from interface org.jboss.portal.test.framework.driver.remote.RemoteTestDriver
SERVICE_ID
 
Constructor Summary
RemoteTestCase(java.lang.String testCaseId)
           
 
Method Summary
 void create()
           
 void destroy()
           
 TestItemInfo getInfo()
          Returns the meta information exposed by the driver.
 java.lang.String getTestCaseId()
           
 TestDriverContainer getTestDriverRegistry()
           
 TestContext popContext(java.lang.String testId)
          A client pop of an http test context for a specific test.
 void pushContext(java.lang.String testId, TestContext testContext)
          A client side push of an http test context for a specific test.
 void setTestDriverRegistry(TestDriverContainer testDriverContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.test.framework.driver.TestDriver
invoke
 

Field Detail

testCaseId

protected final java.lang.String testCaseId
The test id.


testInfo

protected TestInfo testInfo
The test info.


context

protected TestContext context
The test context.


testDriverContainer

protected TestDriverContainer testDriverContainer
The driver registry, in the future we should remove that and use some kind of external wiring mechanism.

Constructor Detail

RemoteTestCase

public RemoteTestCase(java.lang.String testCaseId)
Method Detail

getInfo

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

Specified by:
getInfo in interface TestDriver

getTestDriverRegistry

public TestDriverContainer getTestDriverRegistry()

setTestDriverRegistry

public void setTestDriverRegistry(TestDriverContainer testDriverContainer)

getTestCaseId

public java.lang.String getTestCaseId()

create

public void create()

destroy

public void destroy()

pushContext

public void pushContext(java.lang.String testId,
                        TestContext testContext)
Description copied from interface: RemoteTestDriver
A client side push of an http test context for a specific test.

Specified by:
pushContext in interface RemoteTestDriver

popContext

public TestContext popContext(java.lang.String testId)
Description copied from interface: RemoteTestDriver
A client pop of an http test context for a specific test.

Specified by:
popContext in interface RemoteTestDriver