Changeset 1318 for trunk/java-utils-test/src/test/java
- Timestamp:
- 11/01/13 14:39:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/TextConsoleTest.java
r927 r1318 17 17 import java.io.ByteArrayOutputStream; 18 18 import java.io.PrintStream; 19 import java.util.logging.Level;20 19 21 20 import org.junit.*; … … 82 81 } 83 82 84 @Test85 public void testTraceMsg_1() throws Exception {86 TextConsole fixture = new TextConsole();87 String traceMessage = "test";88 Level traceLevel = Level.WARNING;89 String expectedMessage = "[WARNING] test";90 91 fixture.traceMsg(traceMessage, traceLevel);92 93 assertEquals(expectedMessage, outContent.toString());94 }95 96 @Test97 public void testTraceMsg_2() throws Exception {98 TextConsole fixture = new TextConsole(Level.INFO);99 String traceMessage = "test";100 Level traceLevel = Level.INFO;101 String expectedMessage = "[INFO] test";102 103 fixture.traceMsg(traceMessage, traceLevel);104 105 assertEquals(expectedMessage, outContent.toString());106 }107 108 @Test109 public void testTraceMsg_3() throws Exception {110 TextConsole fixture = new TextConsole(Level.WARNING);111 String traceMessage = "[INFO] test";112 Level traceLevel = Level.INFO;113 114 115 fixture.traceMsg(traceMessage, traceLevel);116 117 assertEquals("", outContent.toString());118 }83 // @Test 84 // public void testTraceMsg_1() throws Exception { 85 // TextConsole fixture = new TextConsole(); 86 // String traceMessage = "test"; 87 // Level traceLevel = Level.WARNING; 88 // String expectedMessage = "[WARNING] test"; 89 // 90 // fixture.traceMsg(traceMessage, traceLevel); 91 // 92 // assertEquals(expectedMessage, outContent.toString()); 93 // } 94 // 95 // @Test 96 // public void testTraceMsg_2() throws Exception { 97 // TextConsole fixture = new TextConsole(Level.INFO); 98 // String traceMessage = "test"; 99 // Level traceLevel = Level.INFO; 100 // String expectedMessage = "[INFO] test"; 101 // 102 // fixture.traceMsg(traceMessage, traceLevel); 103 // 104 // assertEquals(expectedMessage, outContent.toString()); 105 // } 106 // 107 // @Test 108 // public void testTraceMsg_3() throws Exception { 109 // TextConsole fixture = new TextConsole(Level.WARNING); 110 // String traceMessage = "[INFO] test"; 111 // Level traceLevel = Level.INFO; 112 // 113 // 114 // fixture.traceMsg(traceMessage, traceLevel); 115 // 116 // assertEquals("", outContent.toString()); 117 // } 119 118 120 119 @Before
Note: See TracChangeset
for help on using the changeset viewer.