@Test public void test_should_push_create_meterCostRequest_to_Queue() { when(meterCostRepository.pushCreateToQueue(getMeterCostRequest())) .thenReturn(getListOfMeterCosts()); final List<MeterCost> actualMeterCosts = meterCostService.pushCreateToQueue(getMeterCostRequest()); assertTrue(actualMeterCosts.equals(getListOfMeterCosts())); }
public List<MeterCost> pushCreateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostCreateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushCreateToQueue(meterCostRequest); }
MeterCostService { public List<MeterCost> pushCreateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostCreateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushCreateToQueue(meterCostRequest); } }
MeterCostService { public List<MeterCost> pushCreateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostCreateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushCreateToQueue(meterCostRequest); }  }
MeterCostService { public List<MeterCost> pushCreateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostCreateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushCreateToQueue(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> pushCreateToQueue(final MeterCostReq meterCostRequest) { logger.info("Pushing meterCostCreateRequest To Queue"); logger.info("MeterCostReq :" + meterCostRequest); return meterCostRepository.pushCreateToQueue(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; }