|
|
@ -175,21 +175,21 @@ public class SampleIntegrationTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void xmlSample() throws Exception {
|
|
|
|
public void xmlSample() throws Exception {
|
|
|
|
start("samples/app.xml", "samples/runner.groovy");
|
|
|
|
start("samples/runner.xml", "samples/runner.groovy");
|
|
|
|
String output = this.outputCapture.getOutputAndRelease();
|
|
|
|
String output = this.outputCapture.getOutputAndRelease();
|
|
|
|
assertTrue("Wrong output: " + output, output.contains("Hello World"));
|
|
|
|
assertTrue("Wrong output: " + output, output.contains("Hello World"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void txSample() throws Exception {
|
|
|
|
public void txSample() throws Exception {
|
|
|
|
start("samples/app.xml", "samples/tx.groovy");
|
|
|
|
start("samples/tx.groovy");
|
|
|
|
String output = this.outputCapture.getOutputAndRelease();
|
|
|
|
String output = this.outputCapture.getOutputAndRelease();
|
|
|
|
assertTrue("Wrong output: " + output, output.contains("Foo count="));
|
|
|
|
assertTrue("Wrong output: " + output, output.contains("Foo count="));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void jmsSample() throws Exception {
|
|
|
|
public void jmsSample() throws Exception {
|
|
|
|
start("samples/app.xml", "samples/jms.groovy");
|
|
|
|
start("samples/jms.groovy");
|
|
|
|
String output = this.outputCapture.getOutputAndRelease();
|
|
|
|
String output = this.outputCapture.getOutputAndRelease();
|
|
|
|
assertTrue("Wrong output: " + output,
|
|
|
|
assertTrue("Wrong output: " + output,
|
|
|
|
output.contains("Received Greetings from Spring Boot via ActiveMQ"));
|
|
|
|
output.contains("Received Greetings from Spring Boot via ActiveMQ"));
|
|
|
|