From 3916a52fe924323c7e8f9deac086d7cec14685c0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 23 Oct 2014 17:23:16 +0100 Subject: [PATCH] JAL-1521 test to check registry is returning sources --- test/jalview/ws/seqfetcher/DasSequenceFetcher.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/jalview/ws/seqfetcher/DasSequenceFetcher.java diff --git a/test/jalview/ws/seqfetcher/DasSequenceFetcher.java b/test/jalview/ws/seqfetcher/DasSequenceFetcher.java new file mode 100644 index 0000000..7f82252 --- /dev/null +++ b/test/jalview/ws/seqfetcher/DasSequenceFetcher.java @@ -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); + } + +} -- 1.7.10.2