org.jboss.portal.test.framework.mc
Class TestRuntimeContext
java.lang.Object
org.jboss.portal.test.framework.mc.TestRuntimeContext
public class TestRuntimeContext
- extends java.lang.Object
The test context offered to the test.
- Version:
- $Revision: 7954 $
- Author:
- Julien Viet
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()