@Test public void testToReassignmentValue() { final ReassignmentValue expectedResult = new ReassignmentValue(); expectedResult.setDuration("0" + Duration.HOUR.getAlias()); expectedResult.setType("NotCompletedReassign"); final ReassignmentValue result = new ReassignmentRow().toReassignmentValue(); assertEquals(expectedResult, result); }
public ReassignmentValue toReassignmentValue() { ReassignmentValue value = new ReassignmentValue(); value.setType(getType().getAlias()); value.setDuration(getDuration()); value.setGroups(getGroups()); value.setUsers(getUsers()); return value; }
ReassignmentRow { public ReassignmentValue toReassignmentValue() { ReassignmentValue value = new ReassignmentValue(); value.setType(getType().getAlias()); value.setDuration(getDuration()); value.setGroups(getGroups()); value.setUsers(getUsers()); return value; } }
ReassignmentRow { public ReassignmentValue toReassignmentValue() { ReassignmentValue value = new ReassignmentValue(); value.setType(getType().getAlias()); value.setDuration(getDuration()); value.setGroups(getGroups()); value.setUsers(getUsers()); return value; } ReassignmentRow();  ReassignmentRow(ReassignmentValue reassignment); }
ReassignmentRow { public ReassignmentValue toReassignmentValue() { ReassignmentValue value = new ReassignmentValue(); value.setType(getType().getAlias()); value.setDuration(getDuration()); value.setGroups(getGroups()); value.setUsers(getUsers()); return value; } ReassignmentRow();  ReassignmentRow(ReassignmentValue reassignment); ReassignmentType getType(); void setType(ReassignmentType type); String getDuration(); void setDuration(String duration); List<String> getUsers(); void setUsers(List<String> users); List<String> getGroups(); void setGroups(List<String> groups); long getId(); void setId(long id); ReassignmentRow clone(); ReassignmentValue toReassignmentValue(); @Override boolean equals(final Object obj); @Override int hashCode(); }
ReassignmentRow { public ReassignmentValue toReassignmentValue() { ReassignmentValue value = new ReassignmentValue(); value.setType(getType().getAlias()); value.setDuration(getDuration()); value.setGroups(getGroups()); value.setUsers(getUsers()); return value; } ReassignmentRow();  ReassignmentRow(ReassignmentValue reassignment); ReassignmentType getType(); void setType(ReassignmentType type); String getDuration(); void setDuration(String duration); List<String> getUsers(); void setUsers(List<String> users); List<String> getGroups(); void setGroups(List<String> groups); long getId(); void setId(long id); ReassignmentRow clone(); ReassignmentValue toReassignmentValue(); @Override boolean equals(final Object obj); @Override int hashCode();  }