Fix JMS support in the CLI
Partly back port changes fromaffb202eand85c95744fto fix the usage of JMS in the CLI. Restore the integration test using HornetQ and fix the coordinates of the JMS API. Fixes gh-2075
This commit is contained in:
@@ -28,6 +28,7 @@ import org.springframework.boot.groovy.EnableJmsMessaging;
|
||||
* {@link CompilerAutoConfiguration} for Spring JMS.
|
||||
*
|
||||
* @author Greg Turnquist
|
||||
* @author Stephane Nicoll
|
||||
*/
|
||||
public class JmsCompilerAutoConfiguration extends CompilerAutoConfiguration {
|
||||
|
||||
@@ -41,8 +42,7 @@ public class JmsCompilerAutoConfiguration extends CompilerAutoConfiguration {
|
||||
@Override
|
||||
public void applyDependencies(DependencyCustomizer dependencies)
|
||||
throws CompilationFailedException {
|
||||
dependencies.add("spring-jms", "geronimo-jms_1.1_spec");
|
||||
|
||||
dependencies.add("spring-jms", "jms-api");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -134,12 +134,10 @@ public class SampleIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Intermittent failure on CI. See #323")
|
||||
public void jmsSample() throws Exception {
|
||||
String output = this.cli.run("jms.groovy");
|
||||
assertTrue("Wrong output: " + output,
|
||||
output.contains("Received Greetings from Spring Boot via ActiveMQ"));
|
||||
FileUtils.deleteDirectory(new File("activemq-data"));// cleanup ActiveMQ cruft
|
||||
output.contains("Received Greetings from Spring Boot via HornetQ"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user