@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);
 }