193194195196197198199200201202203
Spawner shut = new Spawner(); shut.setCommand(shutdownCmd); shut.spawn(); shut.waitDone(); Thread.sleep(2000); } } }
3334353637383940414243
Spawner sp = new Spawner(); sp.setCommand("ls"); sp.spawn(); sp.waitDone(); assertEquals(0, sp.exitValue()); assertTrue(sp.getOutput().size() > 0); }