From: gmungoc Date: Tue, 21 Mar 2017 12:41:01 +0000 (+0000) Subject: JAL-2306 assert no DAS sources X-Git-Tag: Release_2_10_2~3^2~150^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=da225b41065925be75940261e068bd20ea047057;p=jalview.git JAL-2306 assert no DAS sources --- diff --git a/test/jalview/ws/seqfetcher/DasSequenceFetcher.java b/test/jalview/ws/seqfetcher/DasSequenceFetcher.java index 98ca303..f1dafcb 100644 --- a/test/jalview/ws/seqfetcher/DasSequenceFetcher.java +++ b/test/jalview/ws/seqfetcher/DasSequenceFetcher.java @@ -20,9 +20,11 @@ */ package jalview.ws.seqfetcher; +import static org.testng.Assert.assertTrue; + +import jalview.bin.Cache; import jalview.gui.JvOptionPane; -import org.testng.AssertJUnit; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -36,15 +38,12 @@ public class DasSequenceFetcher JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); } - @Test(groups = { "Functional" }) + @Test(groups = { "Network" }) public void testDasRegistryContact() { - jalview.bin.Cache.getDasSourceRegistry().refreshSources(); - AssertJUnit - .assertTrue( - "Expected to find at least one DAS source at the registry. Check config.", - jalview.bin.Cache.getDasSourceRegistry().getSources() - .size() > 0); + Cache.getDasSourceRegistry().refreshSources(); + assertTrue(Cache.getDasSourceRegistry().getSources().isEmpty(), + "Expected to find no DAS sources at the registry. Check config."); } }