Investigating failing tests

pull/53/merge
Dave Syer 11 years ago
parent 5925e153b4
commit 04ba4d064e

@ -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"));

@ -173,7 +173,8 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
private boolean isJsr303Present() { private boolean isJsr303Present() {
for (String validatorClass : VALIDATOR_CLASSES) { for (String validatorClass : VALIDATOR_CLASSES) {
if (!ClassUtils.isPresent(validatorClass, null)) { if (!ClassUtils.isPresent(validatorClass,
this.applicationContext.getClassLoader())) {
return false; return false;
} }
} }

Loading…
Cancel
Save