Changeset 321 for trunk/JavaHelperLibTest
- Timestamp:
- 12/14/11 16:47:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLibTest/src/de/ugoe/cs/util/console/CommandExecuterTest.java
r319 r321 24 24 25 25 @Test(expected=java.security.InvalidParameterException.class) 26 public void testAddCommandPackage_ fixtureInstance_2()26 public void testAddCommandPackage_2() 27 27 throws Exception { 28 28 CommandExecuter fixture = CommandExecuter.getInstance(); … … 89 89 90 90 @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 @Test106 91 public void testGetInstance_1() 107 92 throws Exception {
Note: See TracChangeset
for help on using the changeset viewer.