@Test public void translatesNull() { assertTrue(mTranslator.translate(null) == null); }
public Task translate(InternalTask in) { Task out = null; if (in != null) { out = new Task(); out.uuid = in.uuid; out.description = in.description; out.done = in.status == InternalTask.Status.Completed; out.urgency = in.urgency; } return out; }
Translator { public Task translate(InternalTask in) { Task out = null; if (in != null) { out = new Task(); out.uuid = in.uuid; out.description = in.description; out.done = in.status == InternalTask.Status.Completed; out.urgency = in.urgency; } return out; } }
Translator { public Task translate(InternalTask in) { Task out = null; if (in != null) { out = new Task(); out.uuid = in.uuid; out.description = in.description; out.done = in.status == InternalTask.Status.Completed; out.urgency = in.urgency; } return out; }  }
Translator { public Task translate(InternalTask in) { Task out = null; if (in != null) { out = new Task(); out.uuid = in.uuid; out.description = in.description; out.done = in.status == InternalTask.Status.Completed; out.urgency = in.urgency; } return out; }  Task translate(InternalTask in); }
Translator { public Task translate(InternalTask in) { Task out = null; if (in != null) { out = new Task(); out.uuid = in.uuid; out.description = in.description; out.done = in.status == InternalTask.Status.Completed; out.urgency = in.urgency; } return out; }  Task translate(InternalTask in);  }