|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jboss.test.AbstractTestCase
org.jboss.test.AbstractTestCaseWithSetup
org.jboss.test.kernel.junit.MicrocontainerTest
public class MicrocontainerTest
A MicrocontainerTest.
| Constructor Summary | |
|---|---|
MicrocontainerTest(String name)
Create a new Microcontainer test |
|
| Method Summary | |
|---|---|
protected void |
afterSetUp()
Configure after set up. |
org.jboss.dependency.spi.ControllerState |
change(KernelControllerContext context,
org.jboss.dependency.spi.ControllerState required)
Change the context to the given state |
protected KernelDeployment |
deploy(String resource)
Deploy a resource |
protected KernelDeployment |
deploy(URL url)
Deploy a url |
protected Object |
getBean(Object name)
Get a bean |
protected Object |
getBean(Object name,
org.jboss.dependency.spi.ControllerState state)
Get a bean |
protected KernelControllerContext |
getControllerContext(Object name)
Get a context |
protected KernelControllerContext |
getControllerContext(Object name,
org.jboss.dependency.spi.ControllerState state)
Get a context |
static org.jboss.test.AbstractTestDelegate |
getDelegate(Class clazz)
Get the test delegate |
protected MicrocontainerTestDelegate |
getMCDelegate()
Get the delegate |
protected KernelMetaDataRepository |
getMetaDataRepository()
Get the metadata repository |
protected void |
setUp()
|
protected void |
shutdown()
Shutdown the controller |
protected void |
undeploy(KernelDeployment deployment)
Undeploy a deployment |
protected void |
undeploy(String resource)
Undeploy a deployment |
protected void |
validate()
Validate |
| Methods inherited from class org.jboss.test.AbstractTestCaseWithSetup |
|---|
enableTrace, getDelegate, getLog, resumeSecurity, suite, suspendSecurity, tearDown |
| Methods inherited from class org.jboss.test.AbstractTestCase |
|---|
assertEmpty, assertEmpty, assertEmpty, assertEquals, assertEquals, assertEquals, assertEquals, assertInstanceOf, assertInstanceOf, checkDeepThrowable, checkDeepThrowableRethrow, checkThrowable, checkThrowableRethrow, configureLogging, deserialize, failure, findResource, getResource, serialize, serializeDeserialize |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MicrocontainerTest(String name)
name - the test name| Method Detail |
|---|
public static org.jboss.test.AbstractTestDelegate getDelegate(Class clazz)
throws Exception
clazz - the test class
Exception - for any error
protected void setUp()
throws Exception
setUp in class org.jboss.test.AbstractTestCaseWithSetupException
protected void afterSetUp()
throws Exception
Exception - for any errorprotected Object getBean(Object name)
name - the bean name
IllegalStateException - when the bean does not exist
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 KernelControllerContext getControllerContext(Object name)
name - the bean name
IllegalStateException - when the context does not exist
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
public 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 KernelDeployment deploy(URL url)
throws Exception
url - the deployment url
Exception - for any error
protected KernelDeployment deploy(String resource)
throws Exception
resource - the deployment resource
Exception - for any errorprotected void undeploy(KernelDeployment deployment)
deployment - the deploymentprotected void undeploy(String resource)
resource - the url
protected void validate()
throws Exception
Exception - for any errorprotected KernelMetaDataRepository getMetaDataRepository()
IllegalStateException - when the bean does not exist at that stateprotected void shutdown()
protected MicrocontainerTestDelegate getMCDelegate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||