We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e76687 + 2c4f390 commit d7ef48aCopy full SHA for d7ef48a
spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java
@@ -144,8 +144,15 @@ public void txSample() throws Exception {
144
145
@Test
146
public void jmsSample() throws Exception {
147
- String output = this.cli.run("jms.groovy");
148
- assertThat(output).contains("Received Greetings from Spring Boot via Artemis");
+ System.setProperty("spring.artemis.embedded.queues", "spring-boot");
+ try {
149
+ String output = this.cli.run("jms.groovy");
150
+ assertThat(output)
151
+ .contains("Received Greetings from Spring Boot via Artemis");
152
+ }
153
+ finally {
154
+ System.clearProperty("spring.artemis.embedded.queues");
155
156
}
157
158
0 commit comments