import org.apache.http.client.ClientProtocolException;
import org.apache.http.message.BasicNameValuePair;
import org.junit.Assert;
-import org.junit.Ignore;
import org.junit.Test;
import eu.etaxonomy.cdm.common.URI;
"}";
private final String dummyJsonDataset = "[" +
- "{"+
- "\"key\": 29596,"+
- "\"type\": \"BIOCASE\","+
- "\"url\": \"http://www.flora-mv.de/biocase/pywrapper.cgi?dsa=hoeherePflanzen\","+
- "\"createdBy\": \"crawler.gbif.org\","+
- "\"modifiedBy\": \"crawler.gbif.org\","+
- "\"created\": \"2014-01-13T10:32:05.170+0000\","+
- "\"modified\": \"2014-01-13T10:32:05.170+0000\","+
- "\"machineTags\": ["+
- " {"+
- " \"key\": 59486,"+
- " \"namespace\": \"metasync.gbif.org\","+
- " \"name\": \"conceptualSchema\","+
- " \"value\": \"http://www.tdwg.org/schemas/abcd/2.06\","+
- " \"createdBy\": \"crawler.gbif.org\","+
- " \"created\": \"2014-01-13T10:32:05.172+0000\""+
- " }"+
- "]"+
- "}"+
-"]";
+ "{"+
+ "\"key\": 29596,"+
+ "\"type\": \"BIOCASE\","+
+ "\"url\": \"http://www.flora-mv.de/biocase/pywrapper.cgi?dsa=hoeherePflanzen\","+
+ "\"createdBy\": \"crawler.gbif.org\","+
+ "\"modifiedBy\": \"crawler.gbif.org\","+
+ "\"created\": \"2014-01-13T10:32:05.170+0000\","+
+ "\"modified\": \"2014-01-13T10:32:05.170+0000\","+
+ "\"machineTags\": ["+
+ " {"+
+ " \"key\": 59486,"+
+ " \"namespace\": \"metasync.gbif.org\","+
+ " \"name\": \"conceptualSchema\","+
+ " \"value\": \"http://www.tdwg.org/schemas/abcd/2.06\","+
+ " \"createdBy\": \"crawler.gbif.org\","+
+ " \"created\": \"2014-01-13T10:32:05.172+0000\""+
+ " }"+
+ "]"+
+ "}"+
+ "]";
@Test
public void testJsonToCdmObject() throws URISyntaxException{
}
@Test
- //@Ignore
public void testGbifWebService() {
OccurenceQuery query = new OccurenceQuery("Campanula persicifolia", "E. J. Palmer", null, null, null, null, null, null, null, false);
GbifQueryServiceWrapper service = new GbifQueryServiceWrapper();
} catch (URISyntaxException e) {
Assert.fail(e.getMessage());
}
-
}
@Test
} catch (URISyntaxException e) {
Assert.fail(e.getMessage());
}
-
}
-
-}
+}
\ No newline at end of file