equal
deleted
inserted
replaced
53 cmd.add("-jar"); |
53 cmd.add("-jar"); |
54 cmd.add("." + File.separator + jar.getName()); |
54 cmd.add("." + File.separator + jar.getName()); |
55 cmd.add("monkey"); |
55 cmd.add("monkey"); |
56 |
56 |
57 ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(cmd.toArray(new String[cmd.size()])); |
57 ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(cmd.toArray(new String[cmd.size()])); |
58 OutputAnalyzer output = new OutputAnalyzer(processBuilder.start()); |
58 OutputAnalyzer output = ProcessTools.executeProcess(processBuilder); |
59 System.out.println(output.getOutput()); |
59 System.out.println(output.getOutput()); |
60 output.shouldHaveExitValue(0); |
60 output.shouldHaveExitValue(0); |
61 } |
61 } |
62 |
62 |
63 } |
63 } |