@Test public void testUnknownIsRunning() throws Exception { assertTrue(ExitStatus.UNKNOWN.isRunning()); }
/** * Decide either or not this task is finished. * If the task {@link ExitStatus#isRunning()} then it will continue otherwise it's finished. * * @param contribution mutable state to be passed back to update the current step execution * @param status the {@link ExitStatus} which contributes in the step execution * @return {@link RepeatStatus#CONTINUABLE} there is more to read or {@link RepeatStatus#FINISHED} if not */ private RepeatStatus finished(StepContribution contribution, ExitStatus status) { RepeatStatus result = RepeatStatus.CONTINUABLE; contribution.setExitStatus(status); if (!status.isRunning()) { reader.close(); opened = false; result = RepeatStatus.FINISHED; } return result; }