@Test public void romudeOtsingV1Test() throws XRoadServiceConsumptionException { List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> response = lkfXTeeV6Service.romudeOtsingV1(START, END); RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item.Vehicle vehicle = response.get(0).getVehicle(); Assert.assertEquals("441BMZ", vehicle.getVehicleRegNo()); Assert.assertEquals("WDD2452071J032007", vehicle.getVehicleVin()); }
@Override public List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate) throws XRoadServiceConsumptionException { RomudeOtsingDocument.RomudeOtsing paring = RomudeOtsingDocument.RomudeOtsing.Factory.newInstance(); paring.setStartDate(Parser.parseDateTime(startDate)); paring.setEndDate(Parser.parseDateTime(endDate)); return lkfv6XRoadDatabase.romudeOtsingV1(paring).getKeha().getClaimBangers().getItemList(); }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate) throws XRoadServiceConsumptionException { RomudeOtsingDocument.RomudeOtsing paring = RomudeOtsingDocument.RomudeOtsing.Factory.newInstance(); paring.setStartDate(Parser.parseDateTime(startDate)); paring.setEndDate(Parser.parseDateTime(endDate)); return lkfv6XRoadDatabase.romudeOtsingV1(paring).getKeha().getClaimBangers().getItemList(); } }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate) throws XRoadServiceConsumptionException { RomudeOtsingDocument.RomudeOtsing paring = RomudeOtsingDocument.RomudeOtsing.Factory.newInstance(); paring.setStartDate(Parser.parseDateTime(startDate)); paring.setEndDate(Parser.parseDateTime(endDate)); return lkfv6XRoadDatabase.romudeOtsingV1(paring).getKeha().getClaimBangers().getItemList(); }  }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate) throws XRoadServiceConsumptionException { RomudeOtsingDocument.RomudeOtsing paring = RomudeOtsingDocument.RomudeOtsing.Factory.newInstance(); paring.setStartDate(Parser.parseDateTime(startDate)); paring.setEndDate(Parser.parseDateTime(endDate)); return lkfv6XRoadDatabase.romudeOtsingV1(paring).getKeha().getClaimBangers().getItemList(); }  @Override List<MntEteenusKlientResponseDocument.MntEteenusKlientResponse.Keha.VehicleCovers.VehicleCover> mntEteenusKlientV1(String vehicleAuthUserList, String vehicleOwnerList, String vehicleIdCodeList, String vehicleRegnoList, String vehicleTempRemovedList, Calendar vehicleTempRemovedDateList); @Override List<MntKandepeatamineKindlInfoResponseDocument.MntKandepeatamineKindlInfoResponse.Keha.Vehicles.Vehicle> mntKandepeatamineKindlInfoV1(String inspectionObligation, Calendar startDate, Calendar endDate); @Override KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis); @Override List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate); }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate) throws XRoadServiceConsumptionException { RomudeOtsingDocument.RomudeOtsing paring = RomudeOtsingDocument.RomudeOtsing.Factory.newInstance(); paring.setStartDate(Parser.parseDateTime(startDate)); paring.setEndDate(Parser.parseDateTime(endDate)); return lkfv6XRoadDatabase.romudeOtsingV1(paring).getKeha().getClaimBangers().getItemList(); }  @Override List<MntEteenusKlientResponseDocument.MntEteenusKlientResponse.Keha.VehicleCovers.VehicleCover> mntEteenusKlientV1(String vehicleAuthUserList, String vehicleOwnerList, String vehicleIdCodeList, String vehicleRegnoList, String vehicleTempRemovedList, Calendar vehicleTempRemovedDateList); @Override List<MntKandepeatamineKindlInfoResponseDocument.MntKandepeatamineKindlInfoResponse.Keha.Vehicles.Vehicle> mntKandepeatamineKindlInfoV1(String inspectionObligation, Calendar startDate, Calendar endDate); @Override KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis); @Override List<RomudeOtsingResponseDocument.RomudeOtsingResponse.Keha.ClaimBangers.Item> romudeOtsingV1(Calendar startDate, Calendar endDate);  }