--- /dev/null
+package jalview.ws2.client.slivka;
+
+import java.io.IOException;
+
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+public class SlivkaWSDiscovererTest
+{
+ @BeforeClass
+ public void setupClass() throws IOException
+ {
+ var discoverer = SlivkaWSDiscoverer.getInstance();
+
+ }
+
+ @Test
+ public void testServiceFetch() throws IOException
+ {
+ var discoverer = SlivkaWSDiscoverer.getInstance();
+ var services = discoverer.fetchServices(discoverer.getDefaultUrl());
+ for (var service : services)
+ {
+ System.out.format("Service(%s>%s @%s)%n", service.getCategory(),
+ service.getName(), service.getUrl());
+ var datastore = service.getParamDatastore();
+ for (var param : datastore.getServiceParameters())
+ {
+ System.out.format(" %s :%s%n", param.getName(), param.getClass().getSimpleName());
+ }
+ }
+ }
+}