Changeset 2281 for trunk/java-utils-test/src/test
- Timestamp:
- 08/02/19 13:39:17 (5 years ago)
- Location:
- trunk/java-utils-test/src/test/java/de/ugoe/cs/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/StopWatchTest.java
r1484 r2281 36 36 stopWatch.stop(id); 37 37 38 assertTrue((9 5 < stopWatch.getDuration(id)) && (stopWatch.getDuration(id) < 105));38 assertTrue((90 < stopWatch.getDuration(id)) && (stopWatch.getDuration(id) < 110)); 39 39 } 40 40 -
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"); -
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommandsTest.java
r927 r2281 40 40 @Test 41 41 public void test() { 42 CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.util.console.defaultcommands" );42 CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.util.console.defaultcommands", this.getClass().getClassLoader()); 43 43 CMDlistCommands command = new CMDlistCommands(); 44 44 command.run(null);
Note: See TracChangeset
for help on using the changeset viewer.