Uploaded in wrong location
This commit is contained in:
parent
4240e34c37
commit
528e3b1ef5
|
@ -1,26 +0,0 @@
|
|||
package com.baeldung.spring.jms.test;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
import com.baeldung.spring.jms.SampleJmsMessageSender;
|
||||
|
||||
public class DefaultTextMessageSenderTest {
|
||||
|
||||
private SampleJmsMessageSender messageProducer;
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@Before
|
||||
public void setUp() {
|
||||
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[] { "classpath:EmbeddedActiveMQ.xml", "classpath:applicationContext.xml" });
|
||||
messageProducer = (SampleJmsMessageSender) applicationContext.getBean("SampleJmsMessageSender");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSimpleSend() {
|
||||
messageProducer.simpleSend();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue