@Before
  public void setUpStreams() {

    setOut(new PrintStream(outContent));
    sut = new FileReader(new RecursiveNumberOfLinesReading());
  }
예제 #2
0
 public static void setTestData(InputStream testIn, PrintStream testOut) {
   System.setIn(testIn);
   System.setOut(testOut);
 }