当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
AbstractTestCase - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.junit
Class AbstractTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.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.
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 |
AbstractTestCase
public AbstractTestCase(java.lang.String s)
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