@Test public void xteeFIEAKV1() throws ParseException, XRoadServiceConsumptionException { List<Period> periodList = emtav5xTeeServiceImpl.xteeFIEAKV1(CODE, dateFormat.parse("01.08.2012"), dateFormat.parse("05.09.2012")); Assert.assertNotNull(periodList); Assert.assertTrue(periodList.size() == 1); Period period = periodList.get(0); assertCalendars(getCalendar("20.08.2012"), period.getStart()); assertCalendars(getCalendar("02.09.2012"), period.getEnd()); Assert.assertEquals(SPOUSE_CODE, period.getCode()); Assert.assertEquals("REIN PEEK", period.getName()); }
public List<Period> xteeFIEAKV1(String id, Date start, Date end) throws XRoadServiceConsumptionException { SpouseCheckRequestType request = SpouseCheckRequestType.Factory.newInstance(); SpouseCheckCommonRequestType commonRequest = request.addNewRequest(); commonRequest.setId(id); commonRequest.setStart(getCalendar(start)); commonRequest.setEnd(getCalendar(end)); XRoadMessage<SpouseCheckResponseType> xteeFIEAKV1 = send(new XmlBeansXRoadMessage<SpouseCheckRequestType>(request), XTEE_FIEAK, V1); Response response = xteeFIEAKV1.getContent().getResponse(); return response.getPeriodList(); }
Emtav5XTeeServiceImpl extends XRoadDatabaseService implements Emtav5XTeeService { public List<Period> xteeFIEAKV1(String id, Date start, Date end) throws XRoadServiceConsumptionException { SpouseCheckRequestType request = SpouseCheckRequestType.Factory.newInstance(); SpouseCheckCommonRequestType commonRequest = request.addNewRequest(); commonRequest.setId(id); commonRequest.setStart(getCalendar(start)); commonRequest.setEnd(getCalendar(end)); XRoadMessage<SpouseCheckResponseType> xteeFIEAKV1 = send(new XmlBeansXRoadMessage<SpouseCheckRequestType>(request), XTEE_FIEAK, V1); Response response = xteeFIEAKV1.getContent().getResponse(); return response.getPeriodList(); } }
Emtav5XTeeServiceImpl extends XRoadDatabaseService implements Emtav5XTeeService { public List<Period> xteeFIEAKV1(String id, Date start, Date end) throws XRoadServiceConsumptionException { SpouseCheckRequestType request = SpouseCheckRequestType.Factory.newInstance(); SpouseCheckCommonRequestType commonRequest = request.addNewRequest(); commonRequest.setId(id); commonRequest.setStart(getCalendar(start)); commonRequest.setEnd(getCalendar(end)); XRoadMessage<SpouseCheckResponseType> xteeFIEAKV1 = send(new XmlBeansXRoadMessage<SpouseCheckRequestType>(request), XTEE_FIEAK, V1); Response response = xteeFIEAKV1.getContent().getResponse(); return response.getPeriodList(); }  }
Emtav5XTeeServiceImpl extends XRoadDatabaseService implements Emtav5XTeeService { public List<Period> xteeFIEAKV1(String id, Date start, Date end) throws XRoadServiceConsumptionException { SpouseCheckRequestType request = SpouseCheckRequestType.Factory.newInstance(); SpouseCheckCommonRequestType commonRequest = request.addNewRequest(); commonRequest.setId(id); commonRequest.setStart(getCalendar(start)); commonRequest.setEnd(getCalendar(end)); XRoadMessage<SpouseCheckResponseType> xteeFIEAKV1 = send(new XmlBeansXRoadMessage<SpouseCheckRequestType>(request), XTEE_FIEAK, V1); Response response = xteeFIEAKV1.getContent().getResponse(); return response.getPeriodList(); }  List<Period> xteeFIEAKV1(String id, Date start, Date end); SkaMitteresidentResponseType skaMitteresident(String registreerimiskood); @Override SmMaksustatavadAndmedResponseType smMaksustatavadAndmed(String isikukood,
                                                                 String perioodiAlgus,
                                                                 String perioodiLopp); @Override XRoadMessage<DownloadMimeResponse> downloadMime(String target); @Override UploadMimeResponse uploadMime(String target, String id, DataHandler fail); }
Emtav5XTeeServiceImpl extends XRoadDatabaseService implements Emtav5XTeeService { public List<Period> xteeFIEAKV1(String id, Date start, Date end) throws XRoadServiceConsumptionException { SpouseCheckRequestType request = SpouseCheckRequestType.Factory.newInstance(); SpouseCheckCommonRequestType commonRequest = request.addNewRequest(); commonRequest.setId(id); commonRequest.setStart(getCalendar(start)); commonRequest.setEnd(getCalendar(end)); XRoadMessage<SpouseCheckResponseType> xteeFIEAKV1 = send(new XmlBeansXRoadMessage<SpouseCheckRequestType>(request), XTEE_FIEAK, V1); Response response = xteeFIEAKV1.getContent().getResponse(); return response.getPeriodList(); }  List<Period> xteeFIEAKV1(String id, Date start, Date end); SkaMitteresidentResponseType skaMitteresident(String registreerimiskood); @Override SmMaksustatavadAndmedResponseType smMaksustatavadAndmed(String isikukood,
                                                                 String perioodiAlgus,
                                                                 String perioodiLopp); @Override XRoadMessage<DownloadMimeResponse> downloadMime(String target); @Override UploadMimeResponse uploadMime(String target, String id, DataHandler fail);  }