1 22 package org.jboss.ejb3.test.ejbthree751.unit; 23 24 import junit.framework.Test; 25 26 import org.jboss.test.JBossTestCase; 27 28 34 public class FailLocalRemoteSameInterfaceUnitTestCase extends JBossTestCase 35 { 36 public FailLocalRemoteSameInterfaceUnitTestCase(String name) 37 { 38 super(name); 39 } 40 41 public static Test suite() throws Exception 42 { 43 return getDeploySetup(FailLocalRemoteSameInterfaceUnitTestCase.class, null); 45 } 46 47 @Override 48 protected void tearDown() throws Exception 49 { 50 undeploy("ejbthree751-fail.jar"); 51 super.tearDown(); 52 } 53 54 public void testDeploymentFailure() throws Exception 55 { 56 redeploy("ejbthree751-fail.jar"); 57 fail("should throw an exception"); 58 } 59 } 60 | Popular Tags |