|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.test.framework.container.TestCaseContext
The test context seen from the server side.
Constructor Summary | |
TestCaseContext(java.lang.String testCaseId,
int requestCount)
|
Method Summary | |
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. |
java.lang.String |
getTestCaseId()
Return the test id. |
static boolean |
isCurrentCaseTestId(java.lang.String id)
|
static boolean |
isCurrentRequestCount(int count)
|
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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestCaseContext(java.lang.String testCaseId, int requestCount)
Method Detail |
public static TestCaseContext getCurrentContext() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no current contextpublic static void setCurrentContext(TestCaseContext newContext)
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 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 |