Remove outdated FIXMEs from tests

Closes gh-19782
This commit is contained in:
Phillip Webb
2020-04-22 11:55:35 -07:00
parent c85918b8b3
commit b3d33754a5
5 changed files with 6 additions and 16 deletions

View File

@@ -51,6 +51,7 @@ public class OutputCapture implements TestRule {
@Override
public Statement apply(Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {
captureOutput();
@@ -69,11 +70,11 @@ public class OutputCapture implements TestRule {
}
}
}
};
}
protected void captureOutput() {
// FIXME AnsiOutput.setEnabled(Enabled.NEVER);
this.copy = new ByteArrayOutputStream();
this.captureOut = new CaptureOutputStream(System.out, this.copy);
this.captureErr = new CaptureOutputStream(System.err, this.copy);
@@ -82,7 +83,6 @@ public class OutputCapture implements TestRule {
}
protected void releaseOutput() {
// FIXME AnsiOutput.setEnabled(Enabled.DETECT);
System.setOut(this.captureOut.getOriginal());
System.setErr(this.captureErr.getOriginal());
this.copy = null;