JAL-1521 test to check registry is returning sources
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 23 Oct 2014 16:23:16 +0000 (17:23 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 23 Oct 2014 16:23:16 +0000 (17:23 +0100)
test/jalview/ws/seqfetcher/DasSequenceFetcher.java [new file with mode: 0644]

diff --git a/test/jalview/ws/seqfetcher/DasSequenceFetcher.java b/test/jalview/ws/seqfetcher/DasSequenceFetcher.java
new file mode 100644 (file)
index 0000000..7f82252
--- /dev/null
@@ -0,0 +1,19 @@
+package jalview.ws.seqfetcher;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class DasSequenceFetcher
+{
+
+  @Test
+  public void testDasRegistryContact()
+  {
+    jalview.bin.Cache.getDasSourceRegistry().refreshSources();
+    assertTrue(
+            "Expected to find at least one DAS source at the registry. Check config.",
+            jalview.bin.Cache.getDasSourceRegistry().getSources().size() > 0);
+  }
+
+}