Add new test class

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-access/gcube-geoserver-connector@164494 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
pasquale.vitale 2018-02-21 11:14:40 +00:00
parent 056184ab99
commit ef71387375
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package org.gcube.data.access.connector;
import org.springframework.web.client.RestTemplate;
public class Test {
public static void main(String[] args) {
String url = "http://sdi-d-d4s.d4science.org:80/sdi-service/gcube/service/GeoServer/credentials/geoserver1-spatial-dev.d4science.org?gcube-token=feda0617-cd9d-4841-b6f0-e047da5d32ed-98187548";
RestTemplate restTemplate = new RestTemplate();
String response = restTemplate.getForObject(url, String.class);
System.out.println(response);
}
}