WIP mmw/JAL-3878_ws-overhaul-3
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 12 Dec 2022 15:24:47 +0000 (16:24 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 12 Dec 2022 15:24:47 +0000 (16:24 +0100)
ISSUES.txt [new file with mode: 0644]
test/jalview/ws2/client/slivka/SlivkaWSDiscovererTest.java [new file with mode: 0644]

diff --git a/ISSUES.txt b/ISSUES.txt
new file mode 100644 (file)
index 0000000..b11d271
--- /dev/null
@@ -0,0 +1,2 @@
+slivka preferences - progress bar disppears immediatelly when running task is cancelled.
+param edit window should aks for preset file
diff --git a/test/jalview/ws2/client/slivka/SlivkaWSDiscovererTest.java b/test/jalview/ws2/client/slivka/SlivkaWSDiscovererTest.java
new file mode 100644 (file)
index 0000000..5519156
--- /dev/null
@@ -0,0 +1,33 @@
+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()); 
+      }
+    }
+  }
+}