Changeset 2281 for trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/CommandExecuterTest.java
- Timestamp:
- 08/02/19 13:39:17 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/CommandExecuterTest.java
r1361 r2281 34 34 CommandExecuter fixture = CommandExecuter.getInstance(); 35 35 36 fixture.addCommandPackage("" );36 fixture.addCommandPackage("", this.getClass().getClassLoader()); 37 37 } 38 38 … … 42 42 CommandExecuter fixture = CommandExecuter.getInstance(); 43 43 44 fixture.addCommandPackage(null );44 fixture.addCommandPackage(null, this.getClass().getClassLoader()); 45 45 } 46 46 … … 51 51 MockOutputListener mockListener = new MockOutputListener(); 52 52 Console.getInstance().registerOutputListener(mockListener); 53 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands" );53 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands", this.getClass().getClassLoader()); 54 54 String command = "mockCommand"; 55 55 String expected = "mock command: run" + System.getProperty("line.separator"); … … 66 66 MockOutputListener mockListener = new MockOutputListener(); 67 67 Console.getInstance().registerOutputListener(mockListener); 68 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands" );68 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands", this.getClass().getClassLoader()); 69 69 String command = "mockCommand param1"; 70 70 String expected = "Usage: mock command: help" + System.getProperty("line.separator"); … … 81 81 MockOutputListener mockListener = new MockOutputListener(); 82 82 Console.getInstance().registerOutputListener(mockListener); 83 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands" );83 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands", this.getClass().getClassLoader()); 84 84 String command = "mockCommand param1 param2"; 85 85 … … 93 93 MockOutputListener mockListener = new MockOutputListener(); 94 94 Console.getInstance().registerOutputListener(mockListener); 95 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands" );95 fixture.addCommandPackage("de.ugoe.cs.util.console.mock.commands", this.getClass().getClassLoader()); 96 96 String command = "mockCommandddd"; 97 97 String expected = "Unknown command" + System.getProperty("line.separator");
Note: See TracChangeset
for help on using the changeset viewer.