1 22 package org.jboss.ejb3.test.jms.unit; 23 24 import org.jboss.ejb3.test.jms.QueueStateless; 25 import org.jboss.logging.Logger; 26 import org.jboss.test.JBossTestCase; 27 import junit.framework.Test; 28 29 30 public class JMSUnitTestCase 31 extends JBossTestCase 32 { 33 private static final Logger log = Logger.getLogger(JMSUnitTestCase.class); 34 35 36 public JMSUnitTestCase(String name) 37 { 38 super(name); 39 } 40 41 44 public void testInjectedQueue() throws Exception 45 { 46 QueueStateless queueStateless = 47 (QueueStateless) getInitialContext().lookup("QueueStateless"); 48 assertNotNull(queueStateless); 49 50 queueStateless.send("test message"); 51 } 52 53 public static Test suite() throws Exception 54 { 55 return getDeploySetup(JMSUnitTestCase.class, "jms.jar"); 56 } 57 } 58 59 60 61 | Popular Tags |