1 22 package org.jboss.ejb3.test.webservices.unit; 23 24 import org.jboss.test.JBossTestCase; 25 import org.jboss.logging.Logger; 26 import org.jboss.ejb3.test.stateful.unit.RemoteUnitTestCase; 27 import org.jboss.ejb3.test.stateful.*; 28 import org.jboss.security.SecurityAssociation; 29 import org.jboss.security.SimplePrincipal; 30 31 import javax.ejb.NoSuchEJBException ; 32 33 import junit.framework.Test; 34 35 41 42 public class WsUnitTestCase 43 extends JBossTestCase 44 { 45 private static final Logger log = Logger.getLogger(WsUnitTestCase.class); 46 47 static boolean deployed = false; 48 static int test = 0; 49 50 public WsUnitTestCase(String name) 51 { 52 53 super(name); 54 55 } 56 57 public void testDeployment() throws Exception 58 { 59 try 60 { 61 deploy("webservices-ejb3.jar"); 62 } 63 finally 64 { 65 try 66 { 67 undeploy("webservices-ejb3.jar"); 68 } 69 catch (Exception e) 70 { 71 throw new RuntimeException (e); 72 } 73 } 74 75 } 76 77 public static Test suite() throws Exception 78 { 79 return getDeploySetup(WsUnitTestCase.class, ""); 80 } 81 82 } 83 | Popular Tags |