@Test public void findVehicle() throws XRoadServiceConsumptionException { VehicleQueryDTO request = VehicleQueryDTO.Factory.newInstance(); fillRequest(request); request.setVinNumber("2184"); checkAnswer(esisXTeeServiceImpl.findVehicle(request)); }
public VehicleResultDTO findVehicle(VehicleQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<VehicleResultDTO> response = send(new XmlBeansXRoadMessage<VehicleQueryDTO>(request), QUERY_VEHICLE); return response.getContent(); }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public VehicleResultDTO findVehicle(VehicleQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<VehicleResultDTO> response = send(new XmlBeansXRoadMessage<VehicleQueryDTO>(request), QUERY_VEHICLE); return response.getContent(); } }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public VehicleResultDTO findVehicle(VehicleQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<VehicleResultDTO> response = send(new XmlBeansXRoadMessage<VehicleQueryDTO>(request), QUERY_VEHICLE); return response.getContent(); }  }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public VehicleResultDTO findVehicle(VehicleQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<VehicleResultDTO> response = send(new XmlBeansXRoadMessage<VehicleQueryDTO>(request), QUERY_VEHICLE); return response.getContent(); }  VehicleResultDTO findVehicle(VehicleQueryDTO request); PersonResultDTO findPerson(PersonQueryDTO request); FirearmResultDTO findFirearm(FirearmQueryDTO request); BlankDocumentResultDTO findBlankDocument(BlankDocumentQueryDTO request); IssuedDocumentResultDTO findIssuedDocument(IssuedDocumentQueryDTO request); BanknoteResultDTO findBanknote(BanknoteQueryDTO request); }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public VehicleResultDTO findVehicle(VehicleQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<VehicleResultDTO> response = send(new XmlBeansXRoadMessage<VehicleQueryDTO>(request), QUERY_VEHICLE); return response.getContent(); }  VehicleResultDTO findVehicle(VehicleQueryDTO request); PersonResultDTO findPerson(PersonQueryDTO request); FirearmResultDTO findFirearm(FirearmQueryDTO request); BlankDocumentResultDTO findBlankDocument(BlankDocumentQueryDTO request); IssuedDocumentResultDTO findIssuedDocument(IssuedDocumentQueryDTO request); BanknoteResultDTO findBanknote(BanknoteQueryDTO request);  }