Changeset 640
- Timestamp:
- 08/27/12 16:15:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDexecTest.java
r323 r640 44 44 parameters 45 45 .add("testdata/de.ugoe.cs.util.console.defaultcommands.CMDexecTest/script1"); 46 String expected = "mockCommand"; 46 String exepctedCommand = "mockCommand"; 47 String expectedTrace = "Executing \"mockCommand\""; 47 48 48 49 fixture.run(parameters); 49 50 50 assertEquals(ex pected, mockCommandListener.getLastCommand());51 assertEquals(expected + ENDLINE, mockTraceListener.getLastTrace());51 assertEquals(exepctedCommand, mockCommandListener.getLastCommand()); 52 assertEquals(expectedTrace + ENDLINE, mockTraceListener.getLastTrace()); 52 53 } 53 54 … … 62 63 parameters 63 64 .add("testdata/de.ugoe.cs.util.console.defaultcommands.CMDexecTest/script2"); 64 String expected = "mockCommand param1"; 65 String expectedCommand = "mockCommand param1"; 66 String expectedTrace = "Executing \"mockCommand param1\""; 65 67 66 68 fixture.run(parameters); 67 69 68 assertEquals(expected , mockCommandListener.getLastCommand());69 assertEquals(expected + ENDLINE, mockTraceListener.getLastTrace());70 assertEquals(expectedCommand, mockCommandListener.getLastCommand()); 71 assertEquals(expectedTrace + ENDLINE, mockTraceListener.getLastTrace()); 70 72 } 71 73 … … 93 95 .add("testdata/de.ugoe.cs.util.console.defaultcommands.CMDexecTest/script2"); 94 96 parameters.add(Integer.parseInt("1")); 95 String expected = "mockCommand param1"; 97 String expectedCommand = "mockCommand param1"; 98 String expectedTrace = "Executing \"mockCommand param1\""; 96 99 97 100 fixture.run(parameters); 98 101 99 assertEquals(expected , mockCommandListener.getLastCommand());100 assertEquals(expected + ENDLINE, mockTraceListener.getLastTrace());102 assertEquals(expectedCommand, mockCommandListener.getLastCommand()); 103 assertEquals(expectedTrace + ENDLINE, mockTraceListener.getLastTrace()); 101 104 } 102 105
Note: See TracChangeset
for help on using the changeset viewer.