Changeset 321


Ignore:
Timestamp:
12/14/11 16:47:44 (13 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaHelperLibTest/src/de/ugoe/cs/util/console/CommandExecuterTest.java

    r319 r321  
    2424 
    2525        @Test(expected=java.security.InvalidParameterException.class) 
    26         public void testAddCommandPackage_fixtureInstance_2() 
     26        public void testAddCommandPackage_2() 
    2727                throws Exception { 
    2828                CommandExecuter fixture = CommandExecuter.getInstance(); 
     
    8989 
    9090        @Test 
    91         public void testExec_5() 
    92                 throws Exception { 
    93                 CommandExecuter fixture = CommandExecuter.getInstance(); 
    94                 MockOutputListener mockListener = new MockOutputListener(); 
    95                 Console.getInstance().registerOutputListener(mockListener); 
    96                 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands"); 
    97                 String command = "mockCommanD"; 
    98                 String expected = "Did you mean mockCommand?" + System.getProperty("line.separator"); 
    99                  
    100                 fixture.exec(command); 
    101                  
    102                 assertEquals(expected, mockListener.getSecondLastOutput()); 
    103         } 
    104  
    105         @Test 
    10691        public void testGetInstance_1() 
    10792                throws Exception { 
Note: See TracChangeset for help on using the changeset viewer.