1 22 package org.jboss.test.system.controller.lifecycle.test; 23 24 import org.jboss.test.system.controller.AbstractControllerTest; 25 import org.jboss.test.system.controller.support.ContainedMBeanServiceMBean; 26 import org.jboss.test.system.controller.support.SimpleMBean; 27 28 34 public abstract class LifecycleRedeployAfterErrorTest extends AbstractControllerTest 35 { 36 public LifecycleRedeployAfterErrorTest(String name) 37 { 38 super(name); 39 } 40 41 public void testErrorInCreateRedeployAfterError() throws Exception 42 { 43 redeployAfterDeployFailure(SimpleMBean.OBJECT_NAME, Error .class); 44 } 45 46 public void testErrorInStartRedeployAfterError() throws Exception 47 { 48 redeployAfterDeployFailure(SimpleMBean.OBJECT_NAME, Error .class); 49 } 50 51 public void testErrorInStopRedeployAfterError() throws Exception 52 { 53 redeployAfterUndeployFailure(SimpleMBean.OBJECT_NAME); 54 } 55 56 public void testErrorInDestroyRedeployAfterError() throws Exception 57 { 58 redeployAfterUndeployFailure(SimpleMBean.OBJECT_NAME); 59 } 60 61 public void testErrorInContainedStartRedeployAfterError() throws Exception 62 { 63 redeployAfterDeployFailure(ContainedMBeanServiceMBean.OBJECT_NAME, Error .class); 64 } 65 } 66 | Popular Tags |