Browse Source

Fix CliTester so that sample integration tests can be run

pull/118/merge
Andy Wilkinson 12 years ago
parent
commit
b05f3e2eec
  1. 5
      spring-boot-cli/src/test/java/org/springframework/boot/cli/CliTester.java

5
spring-boot-cli/src/test/java/org/springframework/boot/cli/CliTester.java

@ -106,6 +106,8 @@ public class CliTester implements TestRule { @@ -106,6 +106,8 @@ public class CliTester implements TestRule {
@Override
public Statement apply(final Statement base, final Description description) {
final Statement statement = CliTester.this.outputCapture.apply(
new RunLauncherStatement(base), description);
return new Statement() {
@Override
@ -114,8 +116,7 @@ public class CliTester implements TestRule { @@ -114,8 +116,7 @@ public class CliTester implements TestRule {
"Not running sample integration tests because integration profile not active",
System.getProperty("spring.profiles.active", "integration")
.contains("integration"));
CliTester.this.outputCapture.apply(new RunLauncherStatement(base),
description);
statement.evaluate();
}
};
}

Loading…
Cancel
Save