|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.test.framework.driver.remote.TestContext
public class TestContext
Field Summary | |
---|---|
protected java.lang.String |
archivePath
The path where archive we want to deploy are. |
protected TestParametrization |
parametrization
The test parametrization. |
protected int |
requestCount
The test count. |
protected DriverResponse |
response
The test response. |
TestAgent |
testAgent
The test agent, normally only valid in the server side for now. |
Constructor Summary | |
---|---|
TestContext(int requestCount,
java.lang.String archivePath,
TestParametrization parametrization,
java.util.Map attributes)
Normally used on the client side. |
|
TestContext(TestContext that)
Copy constructor. |
Method Summary | |
---|---|
void |
deploy(java.lang.String archiveId)
|
java.lang.String |
getArchivePath()
|
java.lang.Object |
getAttribute(java.lang.String name)
|
TestParametrization |
getParametrization()
|
int |
getRequestCount()
Return the test count. |
DriverResponse |
getResponse()
Return the response. |
boolean |
isRequestCount(int count)
Return true if the request count is equals to the specified value. |
void |
removeAttribute(java.lang.String name)
|
java.lang.String |
rewriteURLForNode(java.lang.String url,
NodeId nodeId)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setResponse(DriverResponse response)
|
java.lang.String |
toString()
|
void |
undeploy(java.lang.String archiveId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int requestCount
protected DriverResponse response
protected java.lang.String archivePath
protected TestParametrization parametrization
public transient TestAgent testAgent
TestDriverServer.popContext()
It is package protected so it can be set by the TestDriverServer.pushContext(...)
method.
Constructor Detail |
---|
public TestContext(TestContext that)
public TestContext(int requestCount, java.lang.String archivePath, TestParametrization parametrization, java.util.Map attributes)
Method Detail |
---|
public TestParametrization getParametrization()
public java.lang.String getArchivePath()
public int getRequestCount()
public boolean isRequestCount(int count)
count
- the expected count
java.lang.IllegalStateException
public java.lang.Object getAttribute(java.lang.String name)
public void setAttribute(java.lang.String name, java.lang.Object value)
public void removeAttribute(java.lang.String name)
public DriverResponse getResponse()
public void setResponse(DriverResponse response)
public java.lang.String rewriteURLForNode(java.lang.String url, NodeId nodeId) throws java.net.MalformedURLException
url
- the url to rewritenodeId
- the node id
java.net.MalformedURLException
java.lang.IllegalArgumentException
- if the url is null or the node id not recognizedpublic void deploy(java.lang.String archiveId) throws java.net.MalformedURLException, java.lang.IllegalStateException, java.lang.Exception
java.net.MalformedURLException
java.lang.IllegalStateException
java.lang.Exception
public void undeploy(java.lang.String archiveId) throws java.net.MalformedURLException, java.lang.IllegalStateException, java.lang.Exception
java.net.MalformedURLException
java.lang.IllegalStateException
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |