|
||||||||||
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 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,
ControllerState state)
Get a bean |
protected KernelControllerContext |
getControllerContext(Object name)
Get a context |
protected KernelControllerContext |
getControllerContext(Object name,
ControllerState state)
Get a context |
static org.jboss.test.AbstractTestDelegate |
getDelegate(Class clazz)
Get the test delegate |
protected MicrocontainerTestDelegate |
getMCDelegate()
Get the delegate |
protected void |
setUp()
|
protected void |
undeploy(KernelDeployment deployment)
Undeploy a deployment |
protected void |
validate()
Validate |
Methods inherited from class org.jboss.test.AbstractTestCaseWithSetup |
---|
enableTrace, getDelegate, getLog, suite, tearDown |
Methods inherited from class org.jboss.test.AbstractTestCase |
---|
assertEmpty, assertEmpty, assertEquals, assertEquals, assertEquals, assertEquals, checkThrowable, configureLogging, deserialize, findResource, getResource, serialize |
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, failNotEquals, failNotSame, failSame |
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 nameMethod Detail |
---|
public static org.jboss.test.AbstractTestDelegate getDelegate(Class clazz) throws Exception
clazz
- the test class
Exception
- for any errorprotected void setUp() throws Exception
setUp
in class org.jboss.test.AbstractTestCaseWithSetup
Exception
protected Object getBean(Object name)
name
- the bean name
IllegalStateException
- when the bean does not existprotected 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)
name
- the bean name
IllegalStateException
- when the context does not existprotected 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 KernelDeployment deploy(URL url) throws Exception
url
- the deployment url
Throwable
- for any error
Exception
protected KernelDeployment deploy(String resource) throws Exception
resource
- the deployment resource
Throwable
- for any error
Exception
protected void undeploy(KernelDeployment deployment)
deployment
- the deploymentprotected void validate() throws Exception
Exception
- for any errorprotected MicrocontainerTestDelegate getMCDelegate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |