use of com.netflix.conductor.common.metadata.tasks.TaskExecLog in project conductor by Netflix.
the class AbstractProtoMapper method fromProto.
public TaskExecLog fromProto(TaskExecLogPb.TaskExecLog from) {
TaskExecLog to = new TaskExecLog();
to.setLog(from.getLog());
to.setTaskId(from.getTaskId());
to.setCreatedTime(from.getCreatedTime());
return to;
}
use of com.netflix.conductor.common.metadata.tasks.TaskExecLog in project conductor by Netflix.
the class TaskResourceTest method testGetTaskLogs.
@Test
public void testGetTaskLogs() {
List<TaskExecLog> listOfLogs = new ArrayList<>();
listOfLogs.add(new TaskExecLog("test log"));
when(mockTaskService.getTaskLogs(anyString())).thenReturn(listOfLogs);
assertEquals(listOfLogs, taskResource.getTaskLogs("123"));
}
Aggregations