Changeset 668 for trunk/java-utils-test


Ignore:
Timestamp:
08/28/12 14:03:41 (12 years ago)
Author:
sherbold
Message:
  • fixed tests that needed to be changed due to Command-API change
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  
    5454                fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands"); 
    5555                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"); 
    5757 
    5858                fixture.exec(command); 
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDexecTest.java

    r640 r668  
    2727                MockOutputListener mockListener = new MockOutputListener(); 
    2828                Console.getInstance().registerOutputListener(mockListener); 
    29                 String expected = "Usage: exec <filename>" + ENDLINE; 
     29                String expected = "exec <filename>"; 
    3030 
    31                 fixture.help(); 
    32  
    33                 assertEquals(expected, mockListener.getLastOutput()); 
     31                assertEquals(expected, fixture.help()); 
    3432        } 
    3533 
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDexitTest.java

    r323 r668  
    4848                MockOutputListener mockListener = new MockOutputListener(); 
    4949                Console.getInstance().registerOutputListener(mockListener); 
    50                 String expected = "Usage: exit" + ENDLINE; 
     50                String expected = "exit"; 
    5151 
    52                 fixture.help(); 
    53  
    54                 assertEquals(expected, mockListener.getLastOutput()); 
     52                assertEquals(expected, fixture.help()); 
    5553        } 
    5654 
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommandsTest.java

    r664 r668  
    4848    @Test 
    4949    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"); 
    5251        CMDlistCommands command = new CMDlistCommands(); 
    5352        command.run(null); 
Note: See TracChangeset for help on using the changeset viewer.