@Test public void erakorralineConfirm() throws XRoadServiceConsumptionException { ErakorralineYvConfirmRequestType request = ErakorralineYvConfirmRequestType.Factory.newInstance(); ErakorralineYvConfirmRequestType.Confirmed confirmed = request.addNewConfirmed(); ErakorralineYvConfirmRequestType.Confirmed.Item item = confirmed.addNewItem(); item.setInspectionId("1"); item.setCode("00"); item.setValue("Andmed salvestatud"); confirmed.setItemArray(0, item); ErakorralineYvConfirmRequestType.Confirmed.Item item1 = confirmed.addNewItem(); item1.setInspectionId("2"); item1.setCode("01"); item1.setValue("Sõiduk on juba erakorralisele suunatud"); confirmed.setItemArray(1, item1); request.setConfirmed(confirmed); ErakorralineYvConfirmResponseType response = ljvisXTeeServiceImpl.erakorralineConfirm(request); assertNotNull(response); assertEquals(2 ,response.getConfirmed()); }
public ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request) throws XRoadServiceConsumptionException { ErakorralineYVconfirmDocument.ErakorralineYVconfirm erakorralineYVconfirmDocument = ErakorralineYVconfirmDocument.ErakorralineYVconfirm.Factory.newInstance(); erakorralineYVconfirmDocument.setRequest(request); return ljvisXRoadDatabase.erakorralineYVconfirmV1(erakorralineYVconfirmDocument).getResponse(); }
LjvisXTeeServiceImpl implements LjvisXTeeService { public ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request) throws XRoadServiceConsumptionException { ErakorralineYVconfirmDocument.ErakorralineYVconfirm erakorralineYVconfirmDocument = ErakorralineYVconfirmDocument.ErakorralineYVconfirm.Factory.newInstance(); erakorralineYVconfirmDocument.setRequest(request); return ljvisXRoadDatabase.erakorralineYVconfirmV1(erakorralineYVconfirmDocument).getResponse(); } }
LjvisXTeeServiceImpl implements LjvisXTeeService { public ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request) throws XRoadServiceConsumptionException { ErakorralineYVconfirmDocument.ErakorralineYVconfirm erakorralineYVconfirmDocument = ErakorralineYVconfirmDocument.ErakorralineYVconfirm.Factory.newInstance(); erakorralineYVconfirmDocument.setRequest(request); return ljvisXRoadDatabase.erakorralineYVconfirmV1(erakorralineYVconfirmDocument).getResponse(); }  }
LjvisXTeeServiceImpl implements LjvisXTeeService { public ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request) throws XRoadServiceConsumptionException { ErakorralineYVconfirmDocument.ErakorralineYVconfirm erakorralineYVconfirmDocument = ErakorralineYVconfirmDocument.ErakorralineYVconfirm.Factory.newInstance(); erakorralineYVconfirmDocument.setRequest(request); return ljvisXRoadDatabase.erakorralineYVconfirmV1(erakorralineYVconfirmDocument).getResponse(); }  ErakorralineYvQueryResponseType erakorralineYlevaatused(); ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request); }
LjvisXTeeServiceImpl implements LjvisXTeeService { public ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request) throws XRoadServiceConsumptionException { ErakorralineYVconfirmDocument.ErakorralineYVconfirm erakorralineYVconfirmDocument = ErakorralineYVconfirmDocument.ErakorralineYVconfirm.Factory.newInstance(); erakorralineYVconfirmDocument.setRequest(request); return ljvisXRoadDatabase.erakorralineYVconfirmV1(erakorralineYVconfirmDocument).getResponse(); }  ErakorralineYvQueryResponseType erakorralineYlevaatused(); ErakorralineYvConfirmResponseType erakorralineConfirm(ErakorralineYvConfirmRequestType request);  }