|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.test.framework.TestCaseContext
The test context seen from the server side.
Field Summary | |
private java.lang.String |
archivePath
The path where archive we want to deploy are. |
private static TestCaseContext |
currentContext
The current context. |
private int |
requestCount
The test count. |
private Result |
result
The test result. |
private TestAgent |
testAgent
The test agent, normally only valid in the server side for now. |
private java.lang.String |
testCaseId
The test id. |
Constructor Summary | |
TestCaseContext(java.lang.String testCaseId,
int requestCount,
java.lang.String archivePath)
|
|
TestCaseContext(TestCaseContext that)
Copy constructor. |
Method Summary | |
void |
deploy(java.lang.String archiveId)
|
static TestCaseContext |
getCurrentContext()
Return the current test case context. |
static int |
getCurrentRequestCount()
|
static Result |
getCurrentResult()
|
static java.lang.String |
getCurrentTestCaseId()
|
int |
getRequestCount()
Return the test count. |
Result |
getResult()
Return the result. |
TestAgent |
getTestAgent()
Should not be exposed, but for now, well. |
java.lang.String |
getTestCaseId()
Return the test id. |
static boolean |
isCurrentCaseTestId(java.lang.String id)
|
static boolean |
isCurrentRequestCount(int count)
|
static TestCaseContext |
peekCurrentContext()
Return the current test case context or null if none exist. |
java.lang.String |
rewriteURLForNode(java.lang.String url,
NodeId nodeId)
|
static void |
setCurrentContext(TestCaseContext newContext)
Set the current context. |
static void |
setCurrentResult(Result currentResult)
|
void |
setResult(Result result)
|
void |
setTestAgent(TestAgent testAgent)
Should not be exposed, but for now, well. |
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 |
private static TestCaseContext currentContext
private final java.lang.String testCaseId
private int requestCount
private Result result
private java.lang.String archivePath
private TestAgent testAgent
Constructor Detail |
public TestCaseContext(TestCaseContext that)
public TestCaseContext(java.lang.String testCaseId, int requestCount, java.lang.String archivePath)
Method Detail |
public static TestCaseContext getCurrentContext() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no current contextpublic static TestCaseContext peekCurrentContext()
public static void setCurrentContext(TestCaseContext newContext)
newContext
- the test case contextpublic TestAgent getTestAgent()
public void setTestAgent(TestAgent testAgent)
public java.lang.String getTestCaseId()
public int getRequestCount()
public Result getResult()
public void setResult(Result result)
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, org.jboss.deployment.DeploymentException
java.net.MalformedURLException
java.lang.IllegalStateException
org.jboss.deployment.DeploymentException
public void undeploy(java.lang.String archiveId) throws java.net.MalformedURLException, java.lang.IllegalStateException, org.jboss.deployment.DeploymentException
java.net.MalformedURLException
java.lang.IllegalStateException
org.jboss.deployment.DeploymentException
public static boolean isCurrentCaseTestId(java.lang.String id) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static java.lang.String getCurrentTestCaseId() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static boolean isCurrentRequestCount(int count) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static int getCurrentRequestCount() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static Result getCurrentResult() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static void setCurrentResult(Result currentResult) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |