|
||||||||||
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
public class 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,
ControllerState state)
Get a bean |
protected AbstractBootstrap |
getBootstrap()
Get the kernel bootstrap |
protected KernelControllerContext |
getControllerContext(Object name,
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 errorMethod Detail |
---|
public void setUp() throws Exception
setUp
in class org.jboss.test.AbstractTestDelegate
Exception
public void tearDown() throws Exception
tearDown
in class org.jboss.test.AbstractTestDelegate
Exception
protected AbstractBootstrap getBootstrap() throws Exception
Exception
protected Object getBean(Object name, ControllerState state)
name
- the name of the beanstate
- the state of the bean
IllegalStateException
- when the bean does not exist at that stateprotected KernelControllerContext getControllerContext(Object name, ControllerState state)
name
- the name of the beanstate
- the state of the bean
IllegalStateException
- when the context does not exist at that stateprotected void validate() throws Exception
Exception
protected KernelDeployment deploy(URL url) throws Exception
url
- the deployment url
Throwable
- for any error
Exception
protected void undeploy(KernelDeployment deployment)
deployment
- the deploymentprotected 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 |