1 18 package org.apache.activemq.xbean; 19 20 import org.apache.activemq.EmbeddedBrokerTestSupport; 21 22 import javax.jms.Connection ; 23 24 29 public class MultipleTestsWithEmbeddedBrokerTest extends EmbeddedBrokerTestSupport { 30 protected Connection connection; 31 32 public void test1() throws Exception { 33 } 34 35 public void test2() throws Exception { 36 } 37 38 protected void setUp() throws Exception { 39 log.info("### starting up the test case: " + getName()); 40 41 super.setUp(); 42 connection = connectionFactory.createConnection(); 43 connection.start(); 44 log.info("### started up the test case: " + getName()); 45 } 46 47 protected void tearDown() throws Exception { 48 connection.close(); 49 50 super.tearDown(); 51 52 log.info("### closed down the test case: " + getName()); 53 } 54 } 55 | Popular Tags |