From 93f8a69a2c710d18f8e0c0ceaa6291dbb2d6e9cc Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 12 Dec 2022 16:24:47 +0100 Subject: [PATCH] WIP --- ISSUES.txt | 2 ++ .../ws2/client/slivka/SlivkaWSDiscovererTest.java | 33 ++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 ISSUES.txt create mode 100644 test/jalview/ws2/client/slivka/SlivkaWSDiscovererTest.java diff --git a/ISSUES.txt b/ISSUES.txt new file mode 100644 index 0000000..b11d271 --- /dev/null +++ b/ISSUES.txt @@ -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 index 0000000..5519156 --- /dev/null +++ b/test/jalview/ws2/client/slivka/SlivkaWSDiscovererTest.java @@ -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()); + } + } + } +} -- 1.7.10.2