Changeset 670 for trunk/java-utils-test/src
- Timestamp:
- 08/28/12 14:18:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/TextConsoleTest.java
r636 r670 18 18 19 19 private final static String ENDLINE = System.getProperty("line.separator"); 20 21 private PrintStream sysOut = null; 22 private PrintStream sysErr = null; 20 23 21 24 private final ByteArrayOutputStream outContent = new ByteArrayOutputStream(); … … 106 109 @Before 107 110 public void setUp() throws Exception { 111 sysOut = new PrintStream(System.out); 112 sysErr = new PrintStream(System.err); 108 113 System.setOut(new PrintStream(outContent)); 109 114 System.setErr(new PrintStream(errContent)); … … 112 117 @After 113 118 public void tearDown() throws Exception { 114 System.setOut( null);115 System.setErr( null);119 System.setOut(sysOut); 120 System.setErr(sysErr); 116 121 } 117 122
Note: See TracChangeset
for help on using the changeset viewer.