1 22 package org.jboss.test.system.controller.basic.test; 23 24 import org.jboss.deployment.DeploymentException; 25 import org.jboss.test.system.controller.AbstractControllerTest; 26 import org.jboss.test.system.controller.support.SimpleMBean; 27 28 34 public abstract class DoubleInstallTest extends AbstractControllerTest 35 { 36 public DoubleInstallTest(String name) 37 { 38 super(name); 39 } 40 41 public void testDoubleInstall() throws Exception 42 { 43 try 44 { 45 deploy("DoubleInstall.xml"); 46 fail("Should not be able to deploy twice"); 47 } 48 catch (Throwable t) 49 { 50 checkThrowable(DeploymentException.class, t); 51 } 52 assertServiceRunning(SimpleMBean.OBJECT_NAME); 53 } 54 } 55 | Popular Tags |