Skip to content

Commit

Permalink
[FLINK-2480][streaming]restore the system.out
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangWHWHW committed Aug 25, 2015
1 parent 702b4b1 commit c26ae02
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Test;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Future;
Expand Down Expand Up @@ -264,4 +263,10 @@ public void testPrintSinkStdErr(){
public void invoke(IN record) {

}

@After
public void restoreSystemOut() {
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));
}

}

0 comments on commit c26ae02

Please sign in to comment.