@Test public void test_should_return_false_when_current_assignee_is_different_from_previous_assignee() { final ServiceRequest serviceRequest = ServiceRequest.builder() .attribValues(Arrays.asList( new AttributeEntry(VALUES_POSITION_ID, "1"), new AttributeEntry(PREVIOUS_ASSIGNEE, "2"))) .build(); assertFalse(serviceRequest.isNewAssigneeSameAsPreviousAssignee()); }
public boolean isNewAssigneeSameAsPreviousAssignee() { return Objects.equals(getPositionId(), getPreviousAssignee()); }
ServiceRequest { public boolean isNewAssigneeSameAsPreviousAssignee() { return Objects.equals(getPositionId(), getPreviousAssignee()); } }
ServiceRequest { public boolean isNewAssigneeSameAsPreviousAssignee() { return Objects.equals(getPositionId(), getPreviousAssignee()); }  }
ServiceRequest { public boolean isNewAssigneeSameAsPreviousAssignee() { return Objects.equals(getPositionId(), getPreviousAssignee()); }  void setPreviousAssignee(String previousAssignee); @JsonIgnore String getPositionId(); void setPositionId(String assigneeId); void setEscalatedFlag(); boolean isEscalated(); void setDesignation(String designationId); void setDepartment(String departmentId); void setEscalationHours(String escalationHours); @JsonIgnore String getEscalationHours(); WorkflowRequest getWorkFlowRequestForEscalation(RequestInfo requestInfo); String getDesignation(); void update(WorkflowResponse workflowResponse); void update(Position position); boolean isAttributeEntryPresent(String key); boolean isNewAssigneeSameAsPreviousAssignee(); }
ServiceRequest { public boolean isNewAssigneeSameAsPreviousAssignee() { return Objects.equals(getPositionId(), getPreviousAssignee()); }  void setPreviousAssignee(String previousAssignee); @JsonIgnore String getPositionId(); void setPositionId(String assigneeId); void setEscalatedFlag(); boolean isEscalated(); void setDesignation(String designationId); void setDepartment(String departmentId); void setEscalationHours(String escalationHours); @JsonIgnore String getEscalationHours(); WorkflowRequest getWorkFlowRequestForEscalation(RequestInfo requestInfo); String getDesignation(); void update(WorkflowResponse workflowResponse); void update(Position position); boolean isAttributeEntryPresent(String key); boolean isNewAssigneeSameAsPreviousAssignee(); static final String VALUES_POSITION_ID; static final String VALUES_ESCALATED_FLAG; static final String VALUES_STATE_ID; static final String STATE_DETAILS; static final String STATUS; static final String VALUES_APPROVAL_COMMENT_KEY; static final String PREVIOUS_ASSIGNEE; static final String COMPLAINT_TYPE_CODE; }