[jboss-dev-forums] [Design of POJO Server] - Re: Redeploying after an error JBAS-4900
alesj
do-not-reply at jboss.com
Thu Oct 25 07:57:09 EDT 2007
We already have this test - RedeployAfterErrorTestCase.
| public void testRedeployAfterError() throws Throwable
| {
| KernelDeployment deployment = deploy("RedeployAfterErrorTestCase_bad.xml");
| try
| {
| ControllerContext context = getControllerContext("Name1", null);
| assertEquals(ControllerState.ERROR, context.getState());
| checkThrowable(ClassNotFoundException.class, context.getError());
| }
| finally
| {
| undeploy(deployment);
| }
|
| validate();
|
| deployment = deploy("RedeployAfterErrorTestCase_good.xml");
| try
| {
| validate();
| assertNotNull(getBean("Name1"));
| }
| finally
| {
| undeploy(deployment);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098786#4098786
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098786
More information about the jboss-dev-forums
mailing list