@Test public void findKrIsikId() throws XRoadServiceConsumptionException{ KrIsikIdVastus vastus = karisXTeeServiceImpl.findKrIsikId("11"); Assert.assertNotNull(vastus); Assert.assertNotNull(vastus.getIsik().getIsikList()); Assert.assertEquals("ARVO", vastus.getIsik().getIsikList().get(0).getTtIsikCEes()); Assert.assertEquals("WEEBER", vastus.getIsik().getIsikList().get(0).getTtIsikCPere()); Assert.assertNotNull(vastus.getIsik().getIsikList().get(0).getKaristus().getKaristusList().get(0)); Assert.assertNotNull(vastus.getIsik().getIsikList().get(0).getKaristus().getKaristusList().get(0).getTtKokkuCAsjaNr()); }
public KrIsikIdVastus findKrIsikId(String isikId) throws XRoadServiceConsumptionException { KrIsikIdParing request = KrIsikIdParing.Factory.newInstance(); if(isikId==null) { throw new IllegalArgumentException("Id cannot be null"); } request.setIsikId(isikId); return karisXRoadDatabase.krIsikIdV2(request); }
KarisXTeeServiceImpl extends XRoadDatabaseService implements KarisXTeeService { public KrIsikIdVastus findKrIsikId(String isikId) throws XRoadServiceConsumptionException { KrIsikIdParing request = KrIsikIdParing.Factory.newInstance(); if(isikId==null) { throw new IllegalArgumentException("Id cannot be null"); } request.setIsikId(isikId); return karisXRoadDatabase.krIsikIdV2(request); } }
KarisXTeeServiceImpl extends XRoadDatabaseService implements KarisXTeeService { public KrIsikIdVastus findKrIsikId(String isikId) throws XRoadServiceConsumptionException { KrIsikIdParing request = KrIsikIdParing.Factory.newInstance(); if(isikId==null) { throw new IllegalArgumentException("Id cannot be null"); } request.setIsikId(isikId); return karisXRoadDatabase.krIsikIdV2(request); }  }
KarisXTeeServiceImpl extends XRoadDatabaseService implements KarisXTeeService { public KrIsikIdVastus findKrIsikId(String isikId) throws XRoadServiceConsumptionException { KrIsikIdParing request = KrIsikIdParing.Factory.newInstance(); if(isikId==null) { throw new IllegalArgumentException("Id cannot be null"); } request.setIsikId(isikId); return karisXRoadDatabase.krIsikIdV2(request); }  KrIsikIdVastus findKrIsikId(String isikId); KrIsikudVastus findKrIsikud(String isikukood, String eesnimi, String perenimi, String synnikuupaev); KrIsikVastus findKrIsik(String isikukood); void setKarisXRoadDatabase(KarisXRoadDatabase karisXRoadDatabase); }
KarisXTeeServiceImpl extends XRoadDatabaseService implements KarisXTeeService { public KrIsikIdVastus findKrIsikId(String isikId) throws XRoadServiceConsumptionException { KrIsikIdParing request = KrIsikIdParing.Factory.newInstance(); if(isikId==null) { throw new IllegalArgumentException("Id cannot be null"); } request.setIsikId(isikId); return karisXRoadDatabase.krIsikIdV2(request); }  KrIsikIdVastus findKrIsikId(String isikId); KrIsikudVastus findKrIsikud(String isikukood, String eesnimi, String perenimi, String synnikuupaev); KrIsikVastus findKrIsik(String isikukood); void setKarisXRoadDatabase(KarisXRoadDatabase karisXRoadDatabase);  }