Examples of assertNormalExitValue()


Examples of org.gradle.process.ExecResult.assertNormalExitValue()

        ExecResult result = execHandle.start().waitForFinish();
        assertEquals(ExecHandleState.SUCCEEDED, execHandle.getState());
        assertEquals(0, result.getExitValue());
        assertEquals("args: [arg1, arg2]", out.toString());
        result.assertNormalExitValue();
    }

    @Test
    public void testProcessCanHaveNonZeroExitCode() throws IOException {
        DefaultExecHandle execHandle = new DefaultExecHandle(
View Full Code Here

Examples of org.gradle.process.ExecResult.assertNormalExitValue()

        ExecResult result = execHandle.start().waitForFinish();
        assertEquals(ExecHandleState.FAILED, execHandle.getState());
        assertEquals(72, result.getExitValue());
        try {
            result.assertNormalExitValue();
            fail();
        } catch (ExecException e) {
            assertEquals("Display-name finished with non-zero exit value.", e.getMessage());
        }
    }
View Full Code Here

Examples of org.gradle.process.ExecResult.assertNormalExitValue()

            lock.unlock();
        }
        if (connection != null) {
            connection.stop();
        }
        return result.assertNormalExitValue();
    }
}
View Full Code Here

Examples of org.gradle.process.ExecResult.assertNormalExitValue()

    public ExecResult execute() {
        ExecHandle execHandle = build();
        ExecResult execResult = execHandle.start().waitForFinish();
        if (!isIgnoreExitValue()) {
            execResult.assertNormalExitValue();
        }
        return execResult;
    }
}
View Full Code Here

Examples of org.gradle.process.ExecResult.assertNormalExitValue()

    public ExecResult execute() {
        ExecHandle execHandle = build();
        ExecResult execResult = execHandle.start().waitForFinish();
        if (!isIgnoreExitValue()) {
            execResult.assertNormalExitValue();
        }
        return execResult;
    }
}
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.