@Test public void convertWorks() { WorkflowExecutor executor = new WorkflowExecutor(1, "host", 2, "executorGroup", now(), now().plusMinutes(1), now().plusMinutes(15), now().minusSeconds(7)); ListWorkflowExecutorResponse resp = converter.convert(executor); assertThat(resp.id, is(executor.id)); assertThat(resp.host, is(executor.host)); assertThat(resp.pid, is(executor.pid)); assertThat(resp.executorGroup, is(executor.executorGroup)); assertThat(resp.started, is(executor.started)); assertThat(resp.active, is(executor.active)); assertThat(resp.expires, is(executor.expires)); assertThat(resp.stopped, is(executor.stopped)); }
public ListWorkflowExecutorResponse convert(WorkflowExecutor executor) { ListWorkflowExecutorResponse resp = new ListWorkflowExecutorResponse(); resp.id = executor.id; resp.host = executor.host; resp.pid = executor.pid; resp.executorGroup = executor.executorGroup; resp.started = executor.started; resp.active = executor.active; resp.expires = executor.expires; resp.stopped = executor.stopped; return resp; }
ListWorkflowExecutorConverter { public ListWorkflowExecutorResponse convert(WorkflowExecutor executor) { ListWorkflowExecutorResponse resp = new ListWorkflowExecutorResponse(); resp.id = executor.id; resp.host = executor.host; resp.pid = executor.pid; resp.executorGroup = executor.executorGroup; resp.started = executor.started; resp.active = executor.active; resp.expires = executor.expires; resp.stopped = executor.stopped; return resp; } }
ListWorkflowExecutorConverter { public ListWorkflowExecutorResponse convert(WorkflowExecutor executor) { ListWorkflowExecutorResponse resp = new ListWorkflowExecutorResponse(); resp.id = executor.id; resp.host = executor.host; resp.pid = executor.pid; resp.executorGroup = executor.executorGroup; resp.started = executor.started; resp.active = executor.active; resp.expires = executor.expires; resp.stopped = executor.stopped; return resp; }  }
ListWorkflowExecutorConverter { public ListWorkflowExecutorResponse convert(WorkflowExecutor executor) { ListWorkflowExecutorResponse resp = new ListWorkflowExecutorResponse(); resp.id = executor.id; resp.host = executor.host; resp.pid = executor.pid; resp.executorGroup = executor.executorGroup; resp.started = executor.started; resp.active = executor.active; resp.expires = executor.expires; resp.stopped = executor.stopped; return resp; }  ListWorkflowExecutorResponse convert(WorkflowExecutor executor); }
ListWorkflowExecutorConverter { public ListWorkflowExecutorResponse convert(WorkflowExecutor executor) { ListWorkflowExecutorResponse resp = new ListWorkflowExecutorResponse(); resp.id = executor.id; resp.host = executor.host; resp.pid = executor.pid; resp.executorGroup = executor.executorGroup; resp.started = executor.started; resp.active = executor.active; resp.expires = executor.expires; resp.stopped = executor.stopped; return resp; }  ListWorkflowExecutorResponse convert(WorkflowExecutor executor);  }