|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.test.AbstractTestDelegate
org.jboss.test.kernel.junit.MicrocontainerTestDelegate
A MicrocontainerTestDelegate.
| Field Summary | |
protected BeanXMLDeployer |
deployer
The deployer |
protected List |
deployments
The deployments |
protected Kernel |
kernel
The kernel |
| Fields inherited from class org.jboss.test.AbstractTestDelegate |
clazz, enableSecurity, log, logging, policy |
| Constructor Summary | |
MicrocontainerTestDelegate(Class clazz)
Create a new MicrocontainerTestDelegate. |
|
| Method Summary | |
protected void |
deploy()
Deploy the beans |
protected KernelDeployment |
deploy(URL url)
Deploy a url |
protected Object |
getBean(Object name,
org.jboss.dependency.spi.ControllerState state)
Get a bean |
protected AbstractBootstrap |
getBootstrap()
Get the kernel bootstrap |
protected KernelControllerContext |
getControllerContext(Object name,
org.jboss.dependency.spi.ControllerState state)
Get a context |
void |
setUp()
|
void |
tearDown()
|
protected void |
undeploy()
Undeploy all |
protected void |
undeploy(KernelDeployment deployment)
Undeploy a deployment |
protected void |
validate()
Validate |
| Methods inherited from class org.jboss.test.AbstractTestDelegate |
enableTrace, getDelegate, getLog, log, setUpLogging, setUpSecurity, tearDownLogging, tearDownSecurity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Kernel kernel
protected BeanXMLDeployer deployer
protected List deployments
| Constructor Detail |
public MicrocontainerTestDelegate(Class clazz)
throws Exception
clazz - the test class
Exception - for any error| Method Detail |
public void setUp()
throws Exception
Exception
public void tearDown()
throws Exception
Exception
protected AbstractBootstrap getBootstrap()
throws Exception
Exception
protected Object getBean(Object name,
org.jboss.dependency.spi.ControllerState state)
name - the name of the beanstate - the state of the bean
IllegalStateException - when the bean does not exist at that state
protected KernelControllerContext getControllerContext(Object name,
org.jboss.dependency.spi.ControllerState state)
name - the name of the beanstate - the state of the bean
IllegalStateException - when the context does not exist at that state
protected void validate()
throws Exception
Exception
protected KernelDeployment deploy(URL url)
throws Exception
url - the deployment url
Throwable - for any error
Exceptionprotected void undeploy(KernelDeployment deployment)
deployment - the deployment
protected void deploy()
throws Exception
Exception - for any errorprotected void undeploy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||