From: Mateusz Warowny Date: Mon, 12 Dec 2022 15:24:47 +0000 (+0100) Subject: WIP X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmmw%2FJAL-3878_ws-overhaul-3;p=jalview.git WIP --- 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()); + } + } + } +}