@Test public void testUpdateAsync() { TaxHeadMaster taxHeadMaster = getTaxHeadMaster(); TaxHeadMasterRequest taxHeadMasterRequest = new TaxHeadMasterRequest(); List<TaxHeadMaster> taxHeadMasters = new ArrayList<>(); taxHeadMasters.add(taxHeadMaster); taxHeadMasterRequest.setTaxHeadMasters(taxHeadMasters); TaxHeadMasterResponse taxHeadMasterResponse = new TaxHeadMasterResponse(); taxHeadMasterResponse.setResponseInfo(null); taxHeadMasterResponse.setTaxHeadMasters(taxHeadMasters); assertTrue(taxHeadMasterResponse.equals(taxHeadMasterService.updateAsync(taxHeadMasterRequest))); }
public TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest) { List<TaxHeadMaster> taxHeadMaster = taxHeadMasterRequest.getTaxHeadMasters(); log.info("taxHeadMasterRequest createAsync::" + taxHeadMasterRequest); kafkaTemplate.send(applicationProperties.getUpdateTaxHeadMasterTopicName(), applicationProperties.getUpdateTaxHeadMasterTopicKey(), taxHeadMasterRequest); return getTaxHeadMasterResponse(taxHeadMaster, taxHeadMasterRequest.getRequestInfo()); }
TaxHeadMasterService { public TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest) { List<TaxHeadMaster> taxHeadMaster = taxHeadMasterRequest.getTaxHeadMasters(); log.info("taxHeadMasterRequest createAsync::" + taxHeadMasterRequest); kafkaTemplate.send(applicationProperties.getUpdateTaxHeadMasterTopicName(), applicationProperties.getUpdateTaxHeadMasterTopicKey(), taxHeadMasterRequest); return getTaxHeadMasterResponse(taxHeadMaster, taxHeadMasterRequest.getRequestInfo()); } }
TaxHeadMasterService { public TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest) { List<TaxHeadMaster> taxHeadMaster = taxHeadMasterRequest.getTaxHeadMasters(); log.info("taxHeadMasterRequest createAsync::" + taxHeadMasterRequest); kafkaTemplate.send(applicationProperties.getUpdateTaxHeadMasterTopicName(), applicationProperties.getUpdateTaxHeadMasterTopicKey(), taxHeadMasterRequest); return getTaxHeadMasterResponse(taxHeadMaster, taxHeadMasterRequest.getRequestInfo()); }  }
TaxHeadMasterService { public TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest) { List<TaxHeadMaster> taxHeadMaster = taxHeadMasterRequest.getTaxHeadMasters(); log.info("taxHeadMasterRequest createAsync::" + taxHeadMasterRequest); kafkaTemplate.send(applicationProperties.getUpdateTaxHeadMasterTopicName(), applicationProperties.getUpdateTaxHeadMasterTopicKey(), taxHeadMasterRequest); return getTaxHeadMasterResponse(taxHeadMaster, taxHeadMasterRequest.getRequestInfo()); }  TaxHeadMasterResponse getTaxHeads(TaxHeadMasterCriteria searchTaxHead, RequestInfo requestInfo); TaxHeadMasterResponse create(TaxHeadMasterRequest taxHeadMasterRequest); TaxHeadMasterResponse createAsync(TaxHeadMasterRequest taxHeadMasterRequest); TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest); TaxHeadMasterResponse update(TaxHeadMasterRequest taxHeadMasterRequest); }
TaxHeadMasterService { public TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest) { List<TaxHeadMaster> taxHeadMaster = taxHeadMasterRequest.getTaxHeadMasters(); log.info("taxHeadMasterRequest createAsync::" + taxHeadMasterRequest); kafkaTemplate.send(applicationProperties.getUpdateTaxHeadMasterTopicName(), applicationProperties.getUpdateTaxHeadMasterTopicKey(), taxHeadMasterRequest); return getTaxHeadMasterResponse(taxHeadMaster, taxHeadMasterRequest.getRequestInfo()); }  TaxHeadMasterResponse getTaxHeads(TaxHeadMasterCriteria searchTaxHead, RequestInfo requestInfo); TaxHeadMasterResponse create(TaxHeadMasterRequest taxHeadMasterRequest); TaxHeadMasterResponse createAsync(TaxHeadMasterRequest taxHeadMasterRequest); TaxHeadMasterResponse updateAsync(TaxHeadMasterRequest taxHeadMasterRequest); TaxHeadMasterResponse update(TaxHeadMasterRequest taxHeadMasterRequest);  }