@Test public void testSearch() { MarriageDocTypeResponse mdtResponse = null; try { mdtResponse = getResponse("org/egov/mr/service/marriageDocumentTypeSearchResponseAsDB.json"); } catch (Exception e) { e.printStackTrace(); fail(); } List<MarriageDocumentType> marriageDocumentTypes = getMarriageDocumentTypesForSearch(); mdtSearchCriteria = MarriageDocumentTypeSearchCriteria.builder().applicationType("REISSUE") .tenantId("ap.kurnool").build(); when(marriageDocumentTypeRepository.search(mdtSearchCriteria)).thenReturn(marriageDocumentTypes); RequestInfo requestInfo = new RequestInfo(); requestInfo.setTs(Long.valueOf("987456321")); ResponseEntity<?> resEntity = marriageDocumentTypeService.search(mdtSearchCriteria, requestInfo); assertEquals(Long.valueOf("200").toString(), resEntity.getStatusCode().toString()); assertEquals(mdtResponse, resEntity.getBody()); }
public ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria, org.egov.common.contract.request.RequestInfo requestInfo) { List<MarriageDocumentType> marriageDocTypesList = marriageDocumentTypeRepository .search(marriageDocumentTypeSearchCriteria); return getSuccessResponse(marriageDocTypesList, requestInfo); }
MarriageDocumentTypeService { public ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria, org.egov.common.contract.request.RequestInfo requestInfo) { List<MarriageDocumentType> marriageDocTypesList = marriageDocumentTypeRepository .search(marriageDocumentTypeSearchCriteria); return getSuccessResponse(marriageDocTypesList, requestInfo); } }
MarriageDocumentTypeService { public ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria, org.egov.common.contract.request.RequestInfo requestInfo) { List<MarriageDocumentType> marriageDocTypesList = marriageDocumentTypeRepository .search(marriageDocumentTypeSearchCriteria); return getSuccessResponse(marriageDocTypesList, requestInfo); }  }
MarriageDocumentTypeService { public ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria, org.egov.common.contract.request.RequestInfo requestInfo) { List<MarriageDocumentType> marriageDocTypesList = marriageDocumentTypeRepository .search(marriageDocumentTypeSearchCriteria); return getSuccessResponse(marriageDocTypesList, requestInfo); }  ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria,
			org.egov.common.contract.request.RequestInfo requestInfo); ResponseEntity<?> createAsync(MarriageDocTypeRequest marriageDocTypeRequest); ResponseEntity<?> updateAsync(MarriageDocTypeRequest marriageDocTypeRequest); void create(MarriageDocTypeRequest marriageDocTypeRequest); void update(MarriageDocTypeRequest marriageDocTypeRequest); }
MarriageDocumentTypeService { public ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria, org.egov.common.contract.request.RequestInfo requestInfo) { List<MarriageDocumentType> marriageDocTypesList = marriageDocumentTypeRepository .search(marriageDocumentTypeSearchCriteria); return getSuccessResponse(marriageDocTypesList, requestInfo); }  ResponseEntity<?> search(MarriageDocumentTypeSearchCriteria marriageDocumentTypeSearchCriteria,
			org.egov.common.contract.request.RequestInfo requestInfo); ResponseEntity<?> createAsync(MarriageDocTypeRequest marriageDocTypeRequest); ResponseEntity<?> updateAsync(MarriageDocTypeRequest marriageDocTypeRequest); void create(MarriageDocTypeRequest marriageDocTypeRequest); void update(MarriageDocTypeRequest marriageDocTypeRequest);  }