@Test public void test_should_push_update_meterCostRequest_to_Queue() { when(meterCostRepository.pushUpdateToQueue(getMeterCostRequestForUpdate())) .thenReturn(getListOfUpdatedMeterCosts()); final List<MeterCost> actualMeterCosts = meterCostService.pushUpdateToQueue(getMeterCostRequestForUpdate()); assertTrue(actualMeterCosts.equals(getListOfUpdatedMeterCosts())); }
public List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostUpdateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushUpdateToQueue(meterCostRequest); }
MeterCostService { public List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostUpdateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushUpdateToQueue(meterCostRequest); } }
MeterCostService { public List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostUpdateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushUpdateToQueue(meterCostRequest); }  }
MeterCostService { public List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostUpdateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushUpdateToQueue(meterCostRequest); }  List<MeterCost> pushCreateToQueue(final MeterCostReq meterCostRequest); MeterCostReq create(final MeterCostReq meterCostRequest); List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest); MeterCostReq update(final MeterCostReq meterCostRequest); List<MeterCost> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest); boolean checkMeterMakeAndAmountAlreadyExists(final MeterCost meterCost); }
MeterCostService { public List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostUpdateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushUpdateToQueue(meterCostRequest); }  List<MeterCost> pushCreateToQueue(final MeterCostReq meterCostRequest); MeterCostReq create(final MeterCostReq meterCostRequest); List<MeterCost> pushUpdateToQueue(final MeterCostReq meterCostRequest); MeterCostReq update(final MeterCostReq meterCostRequest); List<MeterCost> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest); boolean checkMeterMakeAndAmountAlreadyExists(final MeterCost meterCost); static final Logger logger; }