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

AbstractTestCase - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.junit
Class AbstractTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.portal.junit.AbstractTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DispatcherTestCase, PortletConfigTestCase, PortletModeTestCase, PortletRequestTestCase, PreferencesSpecTestCase, PreferencesTestCase, RenderResponseTestCase

public class AbstractTestCase
extends junit.framework.TestCase

Base case for client side test case.


Constructor Summary
AbstractTestCase(java.lang.String s)
           
 
Method Summary
 void check(Result result, int expected)
           
 ClientSession createSession()
           
 Result doGet(ClientSession session, Result result, java.lang.String componentName)
           
protected  org.apache.commons.httpclient.HttpClient getClient()
           
protected  org.apache.commons.httpclient.HostConfiguration getHost()
           
protected  org.jboss.jmx.adaptor.rmi.RMIAdaptor getRMIAdaptor()
           
protected  void setUp()
           
 Result start(ClientSession session, java.lang.String componentName)
           
 ResultSetResponse start(ClientSession session, java.lang.String[] componentNames)
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Constructor Detail

AbstractTestCase

public AbstractTestCase(java.lang.String s)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getClient

protected final org.apache.commons.httpclient.HttpClient getClient()

getHost

protected final org.apache.commons.httpclient.HostConfiguration getHost()

getRMIAdaptor

protected final org.jboss.jmx.adaptor.rmi.RMIAdaptor getRMIAdaptor()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

createSession

public ClientSession createSession()

start

public ResultSetResponse start(ClientSession session,
                               java.lang.String[] componentNames)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

start

public Result start(ClientSession session,
                    java.lang.String componentName)
             throws java.lang.Throwable
Throws:
java.lang.Throwable

doGet

public Result doGet(ClientSession session,
                    Result result,
                    java.lang.String componentName)
             throws java.lang.Throwable
Throws:
java.lang.Throwable

check

public void check(Result result,
                  int expected)
           throws java.lang.Throwable
Throws:
java.lang.Throwable