@Test public void test_should_search_meterCost_as_per_Criteria() { when(meterCostRepository.searchMeterCostByCriteria(getMeterCostGetRequest())).thenReturn(getListOfMeterCosts()); final List<MeterCost> actualListOfMeterCosts = meterCostService.getMeterCostByCriteria(getMeterCostGetRequest()); assertTrue(actualListOfMeterCosts.get(0).getCode().equals(getListOfMeterCosts().get(0).getCode())); assertTrue(actualListOfMeterCosts.get(0).getMeterMake().equals(getListOfMeterCosts().get(0).getMeterMake())); assertTrue(actualListOfMeterCosts.get(1).getCode().equals(getListOfMeterCosts().get(1).getCode())); assertTrue(actualListOfMeterCosts.get(1).getMeterMake().equals(getListOfMeterCosts().get(1).getMeterMake())); }
public List<MeterCost> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest) { return meterCostRepository.searchMeterCostByCriteria(meterCostGetRequest); }
MeterCostService { public List<MeterCost> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest) { return meterCostRepository.searchMeterCostByCriteria(meterCostGetRequest); } }
MeterCostService { public List<MeterCost> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest) { return meterCostRepository.searchMeterCostByCriteria(meterCostGetRequest); }  }
MeterCostService { public List<MeterCost> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest) { return meterCostRepository.searchMeterCostByCriteria(meterCostGetRequest); }  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> getMeterCostByCriteria(final MeterCostGetRequest meterCostGetRequest) { return meterCostRepository.searchMeterCostByCriteria(meterCostGetRequest); }  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; }