|
||||||||||
| 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 org.jboss.dependency.spi.ControllerMode |
defaultMode
The default mode |
protected BasicXMLDeployer |
deployer
The deployer |
protected Kernel |
kernel
The kernel |
| Fields inherited from class org.jboss.test.AbstractTestDelegate |
|---|
clazz, enableSecurity, log, logging, policy, securityPolicyName |
| Constructor Summary | |
|---|---|
MicrocontainerTestDelegate(Class clazz)
Create a new MicrocontainerTestDelegate. |
|
| Method Summary | |
|---|---|
protected org.jboss.dependency.spi.ControllerState |
change(KernelControllerContext context,
org.jboss.dependency.spi.ControllerState required)
Change the context to the given state |
protected BasicXMLDeployer |
createDeployer()
|
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 |
org.jboss.dependency.spi.ControllerMode |
getDefaultMode()
Get the defaultMode. |
protected KernelMetaDataRepository |
getMetaDataRepository()
Get the metadata repository |
protected String |
getTestName()
|
protected URL |
getTestResource(String testName)
|
protected KernelControllerContext |
handleNotFoundContext(org.jboss.dependency.spi.Controller controller,
Object name,
org.jboss.dependency.spi.ControllerState state)
Handle not found context. |
void |
setDefaultMode(org.jboss.dependency.spi.ControllerMode defaultMode)
Set the defaultMode. |
void |
setUp()
|
protected void |
shutdown()
|
void |
tearDown()
|
protected void |
undeploy()
Undeploy all |
protected void |
undeploy(KernelDeployment deployment)
Undeploy a deployment |
protected void |
undeploy(URL url)
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 BasicXMLDeployer deployer
protected org.jboss.dependency.spi.ControllerMode defaultMode
| Constructor Detail |
|---|
public MicrocontainerTestDelegate(Class clazz)
throws Exception
clazz - the test class
Exception - for any error| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class org.jboss.test.AbstractTestDelegateExceptionprotected BasicXMLDeployer createDeployer()
public void tearDown()
throws Exception
tearDown in class org.jboss.test.AbstractTestDelegateExceptionpublic org.jboss.dependency.spi.ControllerMode getDefaultMode()
public void setDefaultMode(org.jboss.dependency.spi.ControllerMode defaultMode)
defaultMode - the defaultMode.
protected AbstractBootstrap getBootstrap()
throws Exception
Exception - for any error
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 stateprotected KernelMetaDataRepository getMetaDataRepository()
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 KernelControllerContext handleNotFoundContext(org.jboss.dependency.spi.Controller controller,
Object name,
org.jboss.dependency.spi.ControllerState state)
controller - the controllername - the name of the beanstate - the state of the bean
IllegalStateException - when the context does not exist at that state
protected org.jboss.dependency.spi.ControllerState change(KernelControllerContext context,
org.jboss.dependency.spi.ControllerState required)
throws Throwable
context - the contextrequired - the required state
Throwable - for any error
protected void validate()
throws Exception
Exception - for any error
protected KernelDeployment deploy(URL url)
throws Exception
url - the deployment url
Exception - for any errorprotected void undeploy(KernelDeployment deployment)
deployment - the deploymentprotected void undeploy(URL url)
url - the url
protected void deploy()
throws Exception
Exception - for any errorprotected void shutdown()
protected String getTestName()
protected URL getTestResource(String testName)
protected void undeploy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||