Revision 26489b6c
Added by Patrick Plitzner about 10 years ago
- completed implementation of querying for the original unit from a GBIF response
cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/occurrence/bioCase/BioCaseQueryServiceWrapperTest.java | ||
---|---|---|
66 | 66 |
public void testQueryForUnitId(){ |
67 | 67 |
BioCaseQueryServiceWrapper service = new BioCaseQueryServiceWrapper(); |
68 | 68 |
try { |
69 |
InputStream queryForSingleUnit = service.queryForSingleUnit("29596", new URIBuilder("http://www.flora-mv.de/biocase/pywrapper.cgi?dsa=hoeherePflanzen").build());
|
|
69 |
InputStream queryForSingleUnit = service.query(new OccurenceQuery("29596"), new URIBuilder("http://www.flora-mv.de/biocase/pywrapper.cgi?dsa=hoeherePflanzen").build());
|
|
70 | 70 |
} catch (ClientProtocolException e) { |
71 | 71 |
fail(e.getMessage()); |
72 | 72 |
} catch (IOException e) { |
Also available in: Unified diff