private void _testStatus(final String jobId) throws Exception {
waitFor(6000, new Predicate() {
public boolean evaluate() throws Exception {
CoordinatorEngine ce = new CoordinatorEngine(getTestUser(), "UNIT_TESTING");
CoordinatorJob job = ce.getCoordJob(jobId);
return !job.getStatus().equals(CoordinatorJob.Status.PREP);
}
});
CoordinatorEngine ce = new CoordinatorEngine(getTestUser(), "UNIT_TESTING");
CoordinatorJob job = ce.getCoordJob(jobId);
assertFalse(job.getStatus().equals(CoordinatorJob.Status.PREP));
}