当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
TestRuntimeContext - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.test.framework
Class TestRuntimeContext
java.lang.Object
org.jboss.portal.test.framework.TestRuntimeContext
- public class TestRuntimeContext
- extends java.lang.Object
The test context offered to the test.
Constructor Summary |
TestRuntimeContext(java.lang.String beansDD)
Constructs a new TestRuntimeContext. |
Method Summary |
void |
addBean(java.lang.String id,
java.lang.Object bean)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestRuntimeContext
public TestRuntimeContext(java.lang.String beansDD)
throws java.lang.IllegalArgumentException
- Constructs a new TestRuntimeContext.
- Parameters:
beansDD
- the location of the microcontainer beans descriptor for the beans to be wired for this test
- Throws:
java.lang.IllegalArgumentException
- if beansDD is null or not valid
addBean
public void addBean(java.lang.String id,
java.lang.Object bean)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()