@Test(expected = IllegalArgumentException.class) public void findTvlLoetelu2V1_emptySet() throws Exception { kirstXTeeServiceImpl.findTvlLoetelu2V1(Collections.<String>emptySet(), null, null); }
public TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni) throws XRoadServiceConsumptionException { if (CollectionUtils.isEmpty(isikukoodid)) { throw new IllegalArgumentException("At least one 'isikukood' must be provided"); } TvlLoetelu2RequestType request = createTvlLoetelu2V1Request(isikukoodid, alates, kuni); XRoadMessage<XmlObject> response = send(new XmlBeansXRoadMessage<TvlLoetelu2RequestType>(request), "tvl_loetelu2", "v1"); try { return TvlLoetelu2ResponseType.Factory.parse(response.getContent().xmlText()); } catch (XmlException e) { throw new XRoadServiceConsumptionException(new NonTechnicalFaultException("", "Unable to parse response"), "kirst", "tvl_loetelu2", "v1"); } }
KirstXTeeServiceImpl extends XRoadDatabaseService implements KirstXTeeService { public TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni) throws XRoadServiceConsumptionException { if (CollectionUtils.isEmpty(isikukoodid)) { throw new IllegalArgumentException("At least one 'isikukood' must be provided"); } TvlLoetelu2RequestType request = createTvlLoetelu2V1Request(isikukoodid, alates, kuni); XRoadMessage<XmlObject> response = send(new XmlBeansXRoadMessage<TvlLoetelu2RequestType>(request), "tvl_loetelu2", "v1"); try { return TvlLoetelu2ResponseType.Factory.parse(response.getContent().xmlText()); } catch (XmlException e) { throw new XRoadServiceConsumptionException(new NonTechnicalFaultException("", "Unable to parse response"), "kirst", "tvl_loetelu2", "v1"); } } }
KirstXTeeServiceImpl extends XRoadDatabaseService implements KirstXTeeService { public TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni) throws XRoadServiceConsumptionException { if (CollectionUtils.isEmpty(isikukoodid)) { throw new IllegalArgumentException("At least one 'isikukood' must be provided"); } TvlLoetelu2RequestType request = createTvlLoetelu2V1Request(isikukoodid, alates, kuni); XRoadMessage<XmlObject> response = send(new XmlBeansXRoadMessage<TvlLoetelu2RequestType>(request), "tvl_loetelu2", "v1"); try { return TvlLoetelu2ResponseType.Factory.parse(response.getContent().xmlText()); } catch (XmlException e) { throw new XRoadServiceConsumptionException(new NonTechnicalFaultException("", "Unable to parse response"), "kirst", "tvl_loetelu2", "v1"); } }  }
KirstXTeeServiceImpl extends XRoadDatabaseService implements KirstXTeeService { public TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni) throws XRoadServiceConsumptionException { if (CollectionUtils.isEmpty(isikukoodid)) { throw new IllegalArgumentException("At least one 'isikukood' must be provided"); } TvlLoetelu2RequestType request = createTvlLoetelu2V1Request(isikukoodid, alates, kuni); XRoadMessage<XmlObject> response = send(new XmlBeansXRoadMessage<TvlLoetelu2RequestType>(request), "tvl_loetelu2", "v1"); try { return TvlLoetelu2ResponseType.Factory.parse(response.getContent().xmlText()); } catch (XmlException e) { throw new XRoadServiceConsumptionException(new NonTechnicalFaultException("", "Unable to parse response"), "kirst", "tvl_loetelu2", "v1"); } }  TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni); }
KirstXTeeServiceImpl extends XRoadDatabaseService implements KirstXTeeService { public TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni) throws XRoadServiceConsumptionException { if (CollectionUtils.isEmpty(isikukoodid)) { throw new IllegalArgumentException("At least one 'isikukood' must be provided"); } TvlLoetelu2RequestType request = createTvlLoetelu2V1Request(isikukoodid, alates, kuni); XRoadMessage<XmlObject> response = send(new XmlBeansXRoadMessage<TvlLoetelu2RequestType>(request), "tvl_loetelu2", "v1"); try { return TvlLoetelu2ResponseType.Factory.parse(response.getContent().xmlText()); } catch (XmlException e) { throw new XRoadServiceConsumptionException(new NonTechnicalFaultException("", "Unable to parse response"), "kirst", "tvl_loetelu2", "v1"); } }  TvlLoetelu2ResponseType findTvlLoetelu2V1(Set<String> isikukoodid, Date alates, Date kuni);  }