@Test public void test_should_return_complaint_crn_from_request_map() { final HashMap<String, Object> sevaRequestMap = new HashMap<>(); final HashMap<String, Object> serviceRequest = new HashMap<>(); serviceRequest.put("serviceRequestId", "CRN"); sevaRequestMap.put("serviceRequest", serviceRequest); final SevaRequest sevaRequest = new SevaRequest(sevaRequestMap); assertEquals("CRN", sevaRequest.getCrn()); }
public String getCrn() { return (String) this.serviceRequest.get(CRN); }
SevaRequest { public String getCrn() { return (String) this.serviceRequest.get(CRN); } }
SevaRequest { public String getCrn() { return (String) this.serviceRequest.get(CRN); } @SuppressWarnings("unchecked")  SevaRequest(HashMap<String, Object> sevaRequestMap); }
SevaRequest { public String getCrn() { return (String) this.serviceRequest.get(CRN); } @SuppressWarnings("unchecked")  SevaRequest(HashMap<String, Object> sevaRequestMap); String getMobileNumber(); String getRequesterEmail(); boolean isRequesterEmailAbsent(); String getServiceTypeName(); String getServiceTypeCode(); String getTenantId(); String getCrn(); String getStatusName(); String getDetails(); String getLocationName(); String getRequesterName(); String getFormattedCreatedDate(); boolean isCreate(); boolean isUpdate(); String getProcessingFee(); boolean isProcessingFeePresent(); boolean isInProgress(); boolean isRejected(); boolean isResubmited(); String getLatestRejectionLetter(); @SuppressWarnings("unchecked") boolean isEmployeeLoggedIn(); Long getPositionId(); boolean isEscalated(); Long getPreviousAssignee(); String getLocationId(); }
SevaRequest { public String getCrn() { return (String) this.serviceRequest.get(CRN); } @SuppressWarnings("unchecked")  SevaRequest(HashMap<String, Object> sevaRequestMap); String getMobileNumber(); String getRequesterEmail(); boolean isRequesterEmailAbsent(); String getServiceTypeName(); String getServiceTypeCode(); String getTenantId(); String getCrn(); String getStatusName(); String getDetails(); String getLocationName(); String getRequesterName(); String getFormattedCreatedDate(); boolean isCreate(); boolean isUpdate(); String getProcessingFee(); boolean isProcessingFeePresent(); boolean isInProgress(); boolean isRejected(); boolean isResubmited(); String getLatestRejectionLetter(); @SuppressWarnings("unchecked") boolean isEmployeeLoggedIn(); Long getPositionId(); boolean isEscalated(); Long getPreviousAssignee(); String getLocationId();  }