cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 19 Dec 2022 11:17:36 +0000 (12:17 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 19 Dec 2022 11:17:36 +0000 (12:17 +0100)
cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/occurrence/gbif/GbifQueryServiceWrapperTest.java

index 84120ae89600118b773bc185b37a43a6e29aca16..2eaf802f7c4778790563d44c62cc449b643af628 100644 (file)
@@ -18,7 +18,6 @@ import org.apache.http.NameValuePair;
 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;
@@ -71,26 +70,26 @@ public class GbifQueryServiceWrapperTest {
             "}";
 
     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{
@@ -124,7 +123,6 @@ public class GbifQueryServiceWrapperTest {
     }
 
     @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();
@@ -140,7 +138,6 @@ public class GbifQueryServiceWrapperTest {
         } catch (URISyntaxException e) {
             Assert.fail(e.getMessage());
         }
-
     }
 
     @Test
@@ -156,7 +153,5 @@ public class GbifQueryServiceWrapperTest {
        } catch (URISyntaxException e) {
                Assert.fail(e.getMessage());
        }
-
     }
-
-}
+}
\ No newline at end of file