Improve JMS support in cli
This commit deprecates the proprietary EnableJmsMessaging annotation in favour of the standard @EnableJms introduced as of Spring 4.1. This commit also updates the sample and adds an integration test as the feature was actually broken. Fixes gh-1456
This commit is contained in:
@@ -28,6 +28,7 @@ import static org.junit.Assert.assertThat;
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Andy Wilkinson
|
||||
* @author Stephane Nicoll
|
||||
*/
|
||||
public class ReproIntegrationTests {
|
||||
|
||||
@@ -71,4 +72,10 @@ public class ReproIntegrationTests {
|
||||
this.thrown.expectMessage("is not a JAR file");
|
||||
this.cli.jar("secure.groovy", "crsh.groovy");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void jmsListener() throws Exception {
|
||||
this.cli.run("jms.groovy");
|
||||
assertThat(this.cli.getOutput(), containsString("Hello World"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user