use of com.github.jmchilton.blend4j.galaxy.beans.HistoryDetails in project irida by phac-nml.
the class GalaxyWorkflowStatusTest method testIsRunningWhileQueued.
/**
* Tests whether or not this workflow is considered still running (while
* queued).
*/
@Test
public void testIsRunningWhileQueued() {
HistoryDetails historyDetails = new HistoryDetails();
historyDetails.setState("queued");
historyDetails.setStateIds(Util.buildStateIdsWithStateFilled("queued", Lists.newArrayList(DATASET_ID)));
GalaxyWorkflowStatus workflowStatus = GalaxyWorkflowStatus.builder(historyDetails).build();
assertTrue("Workflow is not still running", workflowStatus.isRunning());
}
use of com.github.jmchilton.blend4j.galaxy.beans.HistoryDetails in project irida by phac-nml.
the class GalaxyWorkflowStatusTest method testErrorOccuredEmpty.
/**
* Tests whether or not this workflow is in an error state when it is an
* empty state.
*/
@Test
public void testErrorOccuredEmpty() {
HistoryDetails historyDetails = new HistoryDetails();
historyDetails.setState("empty");
historyDetails.setStateIds(Util.buildStateIdsWithStateFilled("empty", Lists.newArrayList(DATASET_ID)));
GalaxyWorkflowStatus workflowStatus = GalaxyWorkflowStatus.builder(historyDetails).build();
assertTrue("Workflow is not in an error state", workflowStatus.errorOccurred());
}
use of com.github.jmchilton.blend4j.galaxy.beans.HistoryDetails in project irida by phac-nml.
the class GalaxyWorkflowStatusTest method testErrorOccuredDiscardedStillRunning.
/**
* Tests whether or not this workflow is in an error state when it is discarded
* but the overall workflow is still running.
*/
@Test
public void testErrorOccuredDiscardedStillRunning() {
HistoryDetails historyDetails = new HistoryDetails();
historyDetails.setState("discarded");
historyDetails.setStateIds(Util.buildStateIdsWithStateFilled("discarded", Lists.newArrayList(DATASET_ID)));
GalaxyWorkflowStatus workflowStatus = GalaxyWorkflowStatus.builder(historyDetails).build();
assertTrue("Workflow is not in an error state", workflowStatus.errorOccurred());
}
Aggregations