@Test public void findPakendidDetailandmedv3() throws XRoadServiceConsumptionException { String pakendiKood = "1026177"; List<String> pakendiKoodid = new ArrayList<String>(); pakendiKoodid.add(pakendiKood); List<Pakend> items = ravimiametXRoadServiceImpl.findPakendidDetailandmed(pakendiKoodid); Assert.assertNotNull(items); Assert.assertTrue(items.size() == 1); Pakend pakend = items.get(0); Assert.assertTrue(pakendiKood.equals(pakend.getKood())); }
@Override public List<Pakend> findPakendidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { PakendidByIDArray request = PakendidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.pakendidByIDArrayV3(request).getKeha().getItemList(); }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Pakend> findPakendidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { PakendidByIDArray request = PakendidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.pakendidByIDArrayV3(request).getKeha().getItemList(); } }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Pakend> findPakendidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { PakendidByIDArray request = PakendidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.pakendidByIDArrayV3(request).getKeha().getItemList(); }  }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Pakend> findPakendidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { PakendidByIDArray request = PakendidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.pakendidByIDArrayV3(request).getKeha().getItemList(); }  @Override List<ATCKlassifikaator> findATCKlassifikaatoridDetailandmed(List<String> items); @Override List<String> findATCKlassifikaatorid(Date date); @Override List<Haigus> findHaigusedDetailandmed(List<String> items); @Override List<String> findHaigused(Date date); @Override List<Pakend> findPakendidDetailandmed(List<String> items); @Override List<String> findPakendid(Date date); @Override List<Ravimvorm> findRavimvormidDetailandmed(List<String> items); @Override List<String> findRavimvormid(Date date); @Override List<Soodustus> findSoodustusedDetailandmed(List<String> items); @Override List<String> findSoodustused(Date date); @Override List<Toimeaine> findToimeainedDetailandmed(List<String> items); @Override List<String> findToimeained(Date date); @Override List<String> findPiirhinnad(Date date); @Override List<Piirhind> findPiirhinnadDetailandmed(List<String> items); @Override List<String> findHinnakokkulepped(Date date); @Override List<Hinnakokkulepe> findHinnakokkuleppedDetailandmed(List<String> items); @Override List<String> findMyygiload(Date date); @Override List<Myygiluba> findMyygiloadDetailandmed(List<String> items); void setRavimiregisterXRoadDatabase(RavimiregisterXRoadDatabase ravimiregisterXRoadDatabase); }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Pakend> findPakendidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { PakendidByIDArray request = PakendidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.pakendidByIDArrayV3(request).getKeha().getItemList(); }  @Override List<ATCKlassifikaator> findATCKlassifikaatoridDetailandmed(List<String> items); @Override List<String> findATCKlassifikaatorid(Date date); @Override List<Haigus> findHaigusedDetailandmed(List<String> items); @Override List<String> findHaigused(Date date); @Override List<Pakend> findPakendidDetailandmed(List<String> items); @Override List<String> findPakendid(Date date); @Override List<Ravimvorm> findRavimvormidDetailandmed(List<String> items); @Override List<String> findRavimvormid(Date date); @Override List<Soodustus> findSoodustusedDetailandmed(List<String> items); @Override List<String> findSoodustused(Date date); @Override List<Toimeaine> findToimeainedDetailandmed(List<String> items); @Override List<String> findToimeained(Date date); @Override List<String> findPiirhinnad(Date date); @Override List<Piirhind> findPiirhinnadDetailandmed(List<String> items); @Override List<String> findHinnakokkulepped(Date date); @Override List<Hinnakokkulepe> findHinnakokkuleppedDetailandmed(List<String> items); @Override List<String> findMyygiload(Date date); @Override List<Myygiluba> findMyygiloadDetailandmed(List<String> items); void setRavimiregisterXRoadDatabase(RavimiregisterXRoadDatabase ravimiregisterXRoadDatabase);  }