Bael 2560 spring jms error handler (#6447)
* Spring jms error handler * BAEL-2560 Reverting a change
This commit is contained in:
committed by
maibin
parent
94969021ca
commit
00c115229b
+7
@@ -8,12 +8,14 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
public class DefaultTextMessageSenderIntegrationTest {
|
||||
|
||||
private static SampleJmsMessageSender messageProducer;
|
||||
private static SampleListener messageListener;
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@BeforeClass
|
||||
public static void setUp() {
|
||||
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:EmbeddedActiveMQ.xml", "classpath:applicationContext.xml");
|
||||
messageProducer = (SampleJmsMessageSender) applicationContext.getBean("SampleJmsMessageSender");
|
||||
messageListener = (SampleListener) applicationContext.getBean("messageListener");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -21,4 +23,9 @@ public class DefaultTextMessageSenderIntegrationTest {
|
||||
messageProducer.simpleSend();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendTextMessage() {
|
||||
messageProducer.sendTextMessage(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user