■ ■ ■ ■ ■ ■
common/src/test/java/com/google/tsunami/common/command/CommandExecutorTest.java
| skipped 38 lines |
39 | 39 | | } |
40 | 40 | | |
41 | 41 | | @Test |
| 42 | + | public void executeWithNoStreamCollection_always_startsProcessAndReturnsProcessInstance() |
| 43 | + | throws IOException, InterruptedException, ExecutionException { |
| 44 | + | CommandExecutor executor = new CommandExecutor("/bin/sh", "-c", "echo 1"); |
| 45 | + | |
| 46 | + | Process process = executor.executeWithNoStreamCollection(); |
| 47 | + | process.waitFor(); |
| 48 | + | |
| 49 | + | assertThat(process.exitValue()).isEqualTo(0); |
| 50 | + | } |
| 51 | + | |
| 52 | + | @Test |
42 | 53 | | public void getOutput_always_returnsExpect() |
43 | 54 | | throws IOException, InterruptedException, ExecutionException { |
44 | 55 | | CommandExecutor executor = new CommandExecutor("/bin/sh", "-c", "echo 1"); |
| skipped 43 lines |