@Test public void findFirearm() throws XRoadServiceConsumptionException { FirearmQueryDTO request = FirearmQueryDTO.Factory.newInstance(); fillRequest(request); request.setNumber("1234567"); checkAnswer(esisXTeeServiceImpl.findFirearm(request)); }
public FirearmResultDTO findFirearm(FirearmQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<FirearmResultDTO> response = send(new XmlBeansXRoadMessage<FirearmQueryDTO>(request), QUERY_FIREARM); return response.getContent(); }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public FirearmResultDTO findFirearm(FirearmQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<FirearmResultDTO> response = send(new XmlBeansXRoadMessage<FirearmQueryDTO>(request), QUERY_FIREARM); return response.getContent(); } }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public FirearmResultDTO findFirearm(FirearmQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<FirearmResultDTO> response = send(new XmlBeansXRoadMessage<FirearmQueryDTO>(request), QUERY_FIREARM); return response.getContent(); }  }
EsisXTeeServiceImpl extends XRoadDatabaseService implements EsisXTeeService { public FirearmResultDTO findFirearm(FirearmQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<FirearmResultDTO> response = send(new XmlBeansXRoadMessage<FirearmQueryDTO>(request), QUERY_FIREARM); 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 FirearmResultDTO findFirearm(FirearmQueryDTO request) throws XRoadServiceConsumptionException { XRoadMessage<FirearmResultDTO> response = send(new XmlBeansXRoadMessage<FirearmQueryDTO>(request), QUERY_FIREARM); 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);  }