@Test public void kindlustusKateV3Test() throws XRoadServiceConsumptionException { KindlustuskateResponseDocument.KindlustuskateResponse.Keha response = lkfXTeeV6Service.findKindlustuskateV3("111AAA", null); Assert.assertEquals(response.getMark(), "BENTLEY"); Assert.assertEquals(response.getPolNr(), "3K1101001313460"); }
@Override public KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis) throws XRoadServiceConsumptionException { KindlustuskateDocument.Kindlustuskate paring = KindlustuskateDocument.Kindlustuskate.Factory.newInstance(); if(registrinumber != null) { paring.setRegistreerimismark(registrinumber); } if(tehasetahis != null) { paring.setTehasetahis(tehasetahis); } return lkfv6XRoadDatabase.kindlustuskateV3(paring).getKeha(); }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis) throws XRoadServiceConsumptionException { KindlustuskateDocument.Kindlustuskate paring = KindlustuskateDocument.Kindlustuskate.Factory.newInstance(); if(registrinumber != null) { paring.setRegistreerimismark(registrinumber); } if(tehasetahis != null) { paring.setTehasetahis(tehasetahis); } return lkfv6XRoadDatabase.kindlustuskateV3(paring).getKeha(); } }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis) throws XRoadServiceConsumptionException { KindlustuskateDocument.Kindlustuskate paring = KindlustuskateDocument.Kindlustuskate.Factory.newInstance(); if(registrinumber != null) { paring.setRegistreerimismark(registrinumber); } if(tehasetahis != null) { paring.setTehasetahis(tehasetahis); } return lkfv6XRoadDatabase.kindlustuskateV3(paring).getKeha(); }  }
LkfXTeeV6ServiceImpl implements LkfXTeeV6Service { @Override public KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis) throws XRoadServiceConsumptionException { KindlustuskateDocument.Kindlustuskate paring = KindlustuskateDocument.Kindlustuskate.Factory.newInstance(); if(registrinumber != null) { paring.setRegistreerimismark(registrinumber); } if(tehasetahis != null) { paring.setTehasetahis(tehasetahis); } return lkfv6XRoadDatabase.kindlustuskateV3(paring).getKeha(); }  @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 KindlustuskateResponseDocument.KindlustuskateResponse.Keha findKindlustuskateV3(String registrinumber, String tehasetahis) throws XRoadServiceConsumptionException { KindlustuskateDocument.Kindlustuskate paring = KindlustuskateDocument.Kindlustuskate.Factory.newInstance(); if(registrinumber != null) { paring.setRegistreerimismark(registrinumber); } if(tehasetahis != null) { paring.setTehasetahis(tehasetahis); } return lkfv6XRoadDatabase.kindlustuskateV3(paring).getKeha(); }  @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);  }