Changeset 668 for trunk/java-utils-test
- Timestamp:
- 08/28/12 14:03:41 (12 years ago)
- Location:
- trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/CommandExecuterTest.java
r485 r668 54 54 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands"); 55 55 String command = "mockCommand param1"; 56 String expected = " mock command: help" + System.getProperty("line.separator");56 String expected = "Usage: mock command: help" + System.getProperty("line.separator"); 57 57 58 58 fixture.exec(command); -
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDexecTest.java
r640 r668 27 27 MockOutputListener mockListener = new MockOutputListener(); 28 28 Console.getInstance().registerOutputListener(mockListener); 29 String expected = " Usage: exec <filename>" + ENDLINE;29 String expected = "exec <filename>"; 30 30 31 fixture.help(); 32 33 assertEquals(expected, mockListener.getLastOutput()); 31 assertEquals(expected, fixture.help()); 34 32 } 35 33 -
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDexitTest.java
r323 r668 48 48 MockOutputListener mockListener = new MockOutputListener(); 49 49 Console.getInstance().registerOutputListener(mockListener); 50 String expected = " Usage: exit" + ENDLINE;50 String expected = "exit"; 51 51 52 fixture.help(); 53 54 assertEquals(expected, mockListener.getLastOutput()); 52 assertEquals(expected, fixture.help()); 55 53 } 56 54 -
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommandsTest.java
r664 r668 48 48 @Test 49 49 public void test() { 50 CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.quest.ui.commands"); 51 CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.quest.ui.swt.commands"); 50 CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.util.console.defaultcommands"); 52 51 CMDlistCommands command = new CMDlistCommands(); 53 52 command.run(null);
Note: See TracChangeset
for help on using the changeset viewer.