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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...