Package azkaban.util.process

Examples of azkaban.util.process.AzkabanProcess.run()


    @Test
    public void helloWorld() throws Exception {
        AzkabanProcess process = new AzkabanProcessBuilder("echo", "hello", "world").build();
        assertTrue("Process is not started.", !process.isStarted());
        assertTrue("Process is not running.", !process.isRunning());
        process.run();
        assertTrue("Process should be set.", process.getProcessId() > 0);
        assertTrue("After running, process should be complete.", process.isComplete());
        assertTrue("Process is not running.", !process.isRunning());
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.