@Test public void shouldCreateBusinessServiceDetails() { List<BusinessServiceDetail> businessServiceDetailsForRequest = new ArrayList<>(); BusinessServiceDetail bizServDetail = getBusinessServiceDetail(); businessServiceDetailsForRequest.add(bizServDetail); BusinessServiceDetailRequest businessServiceDetailRequest = new BusinessServiceDetailRequest(); businessServiceDetailRequest.setBusinessServiceDetails(businessServiceDetailsForRequest); List<BusinessServiceDetail> businessServiceDetailsForResponse = new ArrayList<>(); businessServiceDetailsForResponse.add(bizServDetail); BusinessServiceDetailResponse businessServiceDetailResponse = new BusinessServiceDetailResponse(); businessServiceDetailResponse.setResponseInfo(null); businessServiceDetailResponse.setBusinessServiceDetails(businessServiceDetailsForResponse); when(businessServiceDetailRepository.create(any(BusinessServiceDetailRequest.class))).thenReturn(businessServiceDetailsForRequest); assertTrue(businessServiceDetailResponse.equals(businessServDetailService.create(businessServiceDetailRequest))); }
public BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest) { List<BusinessServiceDetail> businessServiceDetailList = businessServiceDetailRepository.create(businessServiceDetailRequest); return getBusinessServiceDetailResponse(businessServiceDetailList, businessServiceDetailRequest.getRequestInfo()); }
BusinessServDetailService { public BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest) { List<BusinessServiceDetail> businessServiceDetailList = businessServiceDetailRepository.create(businessServiceDetailRequest); return getBusinessServiceDetailResponse(businessServiceDetailList, businessServiceDetailRequest.getRequestInfo()); } }
BusinessServDetailService { public BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest) { List<BusinessServiceDetail> businessServiceDetailList = businessServiceDetailRepository.create(businessServiceDetailRequest); return getBusinessServiceDetailResponse(businessServiceDetailList, businessServiceDetailRequest.getRequestInfo()); }  }
BusinessServDetailService { public BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest) { List<BusinessServiceDetail> businessServiceDetailList = businessServiceDetailRepository.create(businessServiceDetailRequest); return getBusinessServiceDetailResponse(businessServiceDetailList, businessServiceDetailRequest.getRequestInfo()); }  BusinessServiceDetailResponse searchBusinessServiceDetails(
			final BusinessServiceDetailCriteria businessServiceDetailCriteria, final RequestInfo requestInfo); BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest); BusinessServiceDetailResponse createAsync(BusinessServiceDetailRequest businessServiceDetailRequest); BusinessServiceDetailResponse updateAsync(BusinessServiceDetailRequest businessServiceDetailRequest); BusinessServiceDetailResponse update(BusinessServiceDetailRequest businessServiceDetailRequest); }
BusinessServDetailService { public BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest) { List<BusinessServiceDetail> businessServiceDetailList = businessServiceDetailRepository.create(businessServiceDetailRequest); return getBusinessServiceDetailResponse(businessServiceDetailList, businessServiceDetailRequest.getRequestInfo()); }  BusinessServiceDetailResponse searchBusinessServiceDetails(
			final BusinessServiceDetailCriteria businessServiceDetailCriteria, final RequestInfo requestInfo); BusinessServiceDetailResponse create(BusinessServiceDetailRequest businessServiceDetailRequest); BusinessServiceDetailResponse createAsync(BusinessServiceDetailRequest businessServiceDetailRequest); BusinessServiceDetailResponse updateAsync(BusinessServiceDetailRequest businessServiceDetailRequest); BusinessServiceDetailResponse update(BusinessServiceDetailRequest businessServiceDetailRequest); static final Logger LOGGER; }