1 22 package org.jboss.ejb3.test.jms.managed.unit; 23 24 import javax.naming.InitialContext ; 25 import org.jboss.ejb3.test.jms.managed.JMSTest; 26 import org.jboss.logging.Logger; 27 import org.jboss.test.JBossTestCase; 28 import junit.framework.Test; 29 30 31 public class ManagedTestCase 32 extends JBossTestCase 33 { 34 protected InitialContext initialContext; 35 36 private static Logger log = Logger.getLogger(ManagedTestCase.class); 37 38 public ManagedTestCase(String name) 39 { 40 super(name); 41 } 42 43 public void setUp() throws Exception 44 { 45 initialContext = new InitialContext (); 46 } 47 48 public void tearDown() throws Exception 49 { 50 } 51 52 53 public void test1() throws Exception 54 { 55 JMSTest testBean = (JMSTest)initialContext.lookup("jms-test-ejbs/JMSTest"); 56 57 testBean.test1(); 58 testBean.remove(); 59 } 60 61 public static Test suite() throws Exception 62 { 63 return getDeploySetup(ManagedTestCase.class, "jms-managed.jar"); 64 } 65 } 66 | Popular Tags |