Investigating failing tests

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

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

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

Loading…
Cancel
Save