@Test public void testGetMarriageRegns() { ResponseInfo responseInfo = ResponseInfo.builder().apiId("string").status("201").ver("string") .ts(Long.valueOf("987456321")).resMsgId("string").build(); when(marriageRegnRepository.findForCriteria(Matchers.any(MarriageRegnCriteria.class))) .thenReturn(getMarriageRegn()); when(responseInfoFactory.createResponseInfoFromRequestInfo(Matchers.any(RequestInfo.class), Matchers.any(Boolean.class))).thenReturn(responseInfo); MarriageRegnCriteria marriageRegnCriteria = MarriageRegnCriteria.builder().tenantId("default").build(); assertEquals(getMarriageRegn(), marriageRegnService.getMarriageRegns(marriageRegnCriteria, new RequestInfo()).getMarriageRegns()); }
public MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(marriageRegnRepository.findForCriteria(marriageRegnCriteria),requestInfo); }
MarriageRegnService { public MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(marriageRegnRepository.findForCriteria(marriageRegnCriteria),requestInfo); } }
MarriageRegnService { public MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(marriageRegnRepository.findForCriteria(marriageRegnCriteria),requestInfo); }  }
MarriageRegnService { public MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(marriageRegnRepository.findForCriteria(marriageRegnCriteria),requestInfo); }  MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo); @Transactional void create(MarriageRegnRequest marriageRegnRequest); MarriageRegnResponse createAsync(MarriageRegnRequest marriageRegnRequest); MarriageRegnResponse updateAsync(MarriageRegnRequest marriageRegnRequest); @Transactional void update(MarriageRegnRequest marriageRegnRequest); }
MarriageRegnService { public MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(marriageRegnRepository.findForCriteria(marriageRegnCriteria),requestInfo); }  MarriageRegnResponse getMarriageRegns(MarriageRegnCriteria marriageRegnCriteria, RequestInfo requestInfo); @Transactional void create(MarriageRegnRequest marriageRegnRequest); MarriageRegnResponse createAsync(MarriageRegnRequest marriageRegnRequest); MarriageRegnResponse updateAsync(MarriageRegnRequest marriageRegnRequest); @Transactional void update(MarriageRegnRequest marriageRegnRequest);  }