1   package net.sourceforge.quexec.jms;
2   
3   import net.sourceforge.quexec.testutil.AbstractMultithreadedTest;
4   import net.sourceforge.quexec.testutil.JmsTestUtils;
5   
6   import org.junit.AfterClass;
7   import org.junit.BeforeClass;
8   import org.junit.runner.RunWith;
9   import org.springframework.test.context.ContextConfiguration;
10  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
11  
12  @RunWith(SpringJUnit4ClassRunner.class)
13  @ContextConfiguration(locations={"classpath:/spring/jmsBase-context.xml"})
14  public abstract class AbstractJmsBasedTest extends AbstractMultithreadedTest {
15  	
16  	@BeforeClass
17  	public static void runBeforeClass() throws Exception {
18  		JmsTestUtils.setUpEmbeddedJMSService();
19  	}
20  	
21  	@AfterClass
22  	public static void runAfterClass() throws Exception {
23  		JmsTestUtils.tearDownEmbeddedJMSService();
24  	}
25  }