Skip to content

Commit 9a70a4e

Browse files
committed
Merge branch '1.5.x'
2 parents f3c2f55 + d7ef48a commit 9a70a4e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,15 @@ public void txSample() throws Exception {
133133

134134
@Test
135135
public void jmsSample() throws Exception {
136-
String output = this.cli.run("jms.groovy");
137-
assertThat(output).contains("Received Greetings from Spring Boot via Artemis");
136+
System.setProperty("spring.artemis.embedded.queues", "spring-boot");
137+
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+
}
138145
}
139146

140147
@Test

0 commit comments

Comments
 (0)