29 lines
764 B
Java
29 lines
764 B
Java
package org.gcube.spatial.data.clients.geoserver;
|
|
|
|
import org.gcube.spatial.data.clients.model.ConnectionDescriptor;
|
|
import org.gcube.spatial.data.sdi.model.faults.RemoteException;
|
|
import org.junit.BeforeClass;
|
|
import org.junit.Test;
|
|
|
|
public class GSTests {
|
|
|
|
|
|
// static String sdiHostname="sdi-t.pre.d4science.org";
|
|
// static String scope ="/pred4s/preprod/preVRE";
|
|
//
|
|
// String sdiHostname="sdi-d-d4s.d4science.org";
|
|
static String scope = "/gcube/devsec/devVRE";
|
|
|
|
@BeforeClass
|
|
public static void setScope(){
|
|
TokenSetter.set(scope);
|
|
}
|
|
|
|
@Test
|
|
public void getWS() throws RemoteException, Exception {
|
|
System.out.println(new GSRESTClientImpl(new ConnectionDescriptor("https://geoserver1.dev.d4science.org/geoserver/rest")).getWorkspaces());
|
|
}
|
|
|
|
|
|
}
|