|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestCase org.jboss.portal.test.framework.container.client.TestCase
Base class for portlet test case.
Field Summary | |
private org.apache.commons.httpclient.HttpClient |
client
. |
private Node |
currentNode
. |
private NodeId |
initialNodeId
. |
private org.apache.log4j.Logger |
log
. |
private int |
requestCount
. |
protected TestRunner |
runner
The runner we belong to. |
protected java.lang.String |
testCaseId
The test case id. |
protected java.lang.String |
uri
The initial uri. |
Constructor Summary | |
TestCase(NodeId initialNodeId,
java.lang.String testCaseId)
|
|
TestCase(NodeId initialNodeId,
java.lang.String testCaseId,
java.lang.String uri)
|
|
TestCase(java.lang.String testCaseId)
|
|
TestCase(java.lang.String testCaseId,
java.lang.String uri)
|
Method Summary | |
private ClientCommand |
evaluateHttpMethodResponse(org.apache.commons.httpclient.HttpMethod hm)
|
int |
executeMethod(org.apache.commons.httpclient.HttpMethod method)
|
java.lang.String |
getName()
Override with the test case id. |
private Node |
getNode(int port)
|
int |
getPort(Node node)
|
protected void |
run(ClientCommand cmd)
|
protected void |
runTest()
Perform the test run. |
void |
setRunner(TestRunner runner)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final org.apache.log4j.Logger log
protected java.lang.String testCaseId
protected TestRunner runner
protected java.lang.String uri
private NodeId initialNodeId
private int requestCount
private org.apache.commons.httpclient.HttpClient client
private Node currentNode
Constructor Detail |
public TestCase(java.lang.String testCaseId)
public TestCase(NodeId initialNodeId, java.lang.String testCaseId)
public TestCase(java.lang.String testCaseId, java.lang.String uri)
public TestCase(NodeId initialNodeId, java.lang.String testCaseId, java.lang.String uri)
Method Detail |
public void setRunner(TestRunner runner)
public final java.lang.String getName()
protected final void runTest() throws java.lang.Throwable
java.lang.Throwable
protected final void run(ClientCommand cmd) throws java.lang.Throwable
java.lang.Throwable
private ClientCommand evaluateHttpMethodResponse(org.apache.commons.httpclient.HttpMethod hm) throws java.lang.Exception
java.lang.Exception
public int executeMethod(org.apache.commons.httpclient.HttpMethod method) throws java.lang.Exception
java.lang.Exception
private Node getNode(int port)
public int getPort(Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |