use of org.ow2.proactive.scheduler.job.InternalTaskFlowJob in project scheduling by ow2-proactive.
the class SchedulerStateRestJobLogsTest method job_full_logs_not_finished.
@Test
public void job_full_logs_not_finished() throws Exception {
InternalTaskFlowJob jobState = new InternalTaskFlowJob();
jobState.addTask(new InternalScriptTask(jobState));
when(mockScheduler.getJobState("123")).thenReturn(jobState);
InputStream fullLogs = (InputStream) restScheduler.jobFullLogs(validSessionId, "123", validSessionId, null).getEntity();
String logsString = IOUtils.toString(fullLogs);
assertEquals("", logsString);
}
Aggregations