use of org.opencastproject.scheduler.api.Recording in project opencast by opencast.
the class SchedulerServiceImplTest method verifyRecording.
private void verifyRecording(String id, String state) throws SchedulerException {
if (state == null) {
try {
schedSvc.getRecordingState(id);
fail("");
} catch (NotFoundException e) {
assertNotNull(e);
}
} else {
try {
Recording recording = schedSvc.getRecordingState(id);
assertEquals(id, recording.getID());
assertEquals(state, recording.getState());
} catch (NotFoundException e) {
fail("");
}
}
}
Aggregations