Revision 0f5ddf4b
Added by Patrick Plitzner over 8 years ago
cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/occurrence/gbif/GbifQueryServiceWrapperTest.java | ||
---|---|---|
101 | 101 |
GbifResponse gbifResponse = records.iterator().next(); |
102 | 102 |
assertEquals("Locality is incorrect", LOCALITY_STRING, gbifResponse.getDerivedUnitFacade().getLocalityText()); |
103 | 103 |
assertEquals("protocol is wrong", GbifDataSetProtocol.BIOCASE, gbifResponse.getDataSetProtocol()); |
104 |
assertEquals("protocol is wrong", new URI("http://api.gbif.org/v0.9/dataset/26a49731-9457-45b2-9105-1b96063deb26/endpoint"), gbifResponse.getDataSetUri());
|
|
104 |
assertEquals("protocol is wrong", new URI("http://api.gbif.org/v1/dataset/26a49731-9457-45b2-9105-1b96063deb26/endpoint"), gbifResponse.getDataSetUri());
|
|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
@Test |
... | ... | |
133 | 133 |
Collection<GbifResponse> gbifResponse = service.query(query); |
134 | 134 |
assertEquals("Usually this query retrieves at least two units. " + |
135 | 135 |
"Test failure may also be due to GBIF!" + |
136 |
"Check http://api.gbif.org/v0.9/occurrence/search?basisOfRecord=PRESERVED_SPECIMEN&limit=100&recordedBy=E.+J.+Palmer&scientificName=Campanula+persicifolia", 2, gbifResponse.size());
|
|
136 |
"Check http://api.gbif.org/v1/occurrence/search?basisOfRecord=PRESERVED_SPECIMEN&limit=100&recordedBy=E.+J.+Palmer&scientificName=Campanula+persicifolia", 2, gbifResponse.size());
|
|
137 | 137 |
} catch (ClientProtocolException e) { |
138 | 138 |
fail(e.getMessage()); |
139 | 139 |
} catch (IOException e) { |
Also available in: Unified diff
Increase Gbif webservice version number #4571