Fix CliTester so that sample integration tests can be run

pull/118/merge
Andy Wilkinson 11 years ago
parent 6ab14a51eb
commit b05f3e2eec

@ -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 {
"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