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 f3c2f55 + d7ef48a commit 9a70a4eCopy full SHA for 9a70a4e
spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java
@@ -133,8 +133,15 @@ public void txSample() throws Exception {
133
134
@Test
135
public void jmsSample() throws Exception {
136
- String output = this.cli.run("jms.groovy");
137
- assertThat(output).contains("Received Greetings from Spring Boot via Artemis");
+ System.setProperty("spring.artemis.embedded.queues", "spring-boot");
+ try {
138
+ String output = this.cli.run("jms.groovy");
139
+ assertThat(output)
140
+ .contains("Received Greetings from Spring Boot via Artemis");
141
+ }
142
+ finally {
143
+ System.clearProperty("spring.artemis.embedded.queues");
144
145
}
146
147
0 commit comments