站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

TestCase - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.test.framework.container.client
Class TestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.portal.test.framework.container.client.TestCase
All Implemented Interfaces:
junit.framework.Test

public class TestCase
extends junit.framework.TestCase

Base class for portlet test case.


Field Summary
protected  TestSuite suite
          The suite 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
 int executeMethod(org.apache.commons.httpclient.HttpMethod method)
           
 java.lang.String getName()
          Override with the test case id.
 int getPort(Node node)
           
protected  void run(ClientCommand cmd)
           
protected  void runTest()
          Perform the test run.
 void setSuite(TestSuite suite)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testCaseId

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


suite

protected TestSuite suite
The suite we belong to.


uri

protected java.lang.String uri
The initial uri.

Constructor Detail

TestCase

public TestCase(java.lang.String testCaseId)

TestCase

public TestCase(NodeId initialNodeId,
                java.lang.String testCaseId)

TestCase

public TestCase(java.lang.String testCaseId,
                java.lang.String uri)

TestCase

public TestCase(NodeId initialNodeId,
                java.lang.String testCaseId,
                java.lang.String uri)
Method Detail

setSuite

public void setSuite(TestSuite suite)

getName

public final java.lang.String getName()
Override with the test case id.


runTest

protected final void runTest()
                      throws java.lang.Throwable
Perform the test run.

Throws:
java.lang.Throwable

run

protected final void run(ClientCommand cmd)
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

executeMethod

public int executeMethod(org.apache.commons.httpclient.HttpMethod method)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getPort

public int getPort(Node node)