Fix CliTester so that sample integration tests can be run
This commit is contained in:
parent
6ab14a51eb
commit
b05f3e2eec
|
@ -106,6 +106,8 @@ public class CliTester implements TestRule {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Statement apply(final Statement base, final Description description) {
|
public Statement apply(final Statement base, final Description description) {
|
||||||
|
final Statement statement = CliTester.this.outputCapture.apply(
|
||||||
|
new RunLauncherStatement(base), description);
|
||||||
return new Statement() {
|
return new Statement() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -114,8 +116,7 @@ public class CliTester implements TestRule {
|
||||||
"Not running sample integration tests because integration profile not active",
|
"Not running sample integration tests because integration profile not active",
|
||||||
System.getProperty("spring.profiles.active", "integration")
|
System.getProperty("spring.profiles.active", "integration")
|
||||||
.contains("integration"));
|
.contains("integration"));
|
||||||
CliTester.this.outputCapture.apply(new RunLauncherStatement(base),
|
statement.evaluate();
|
||||||
description);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue