From a937729355138d88dd891dc47b1a38a786f058d5 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 10 Oct 2019 15:29:49 +0100 Subject: [PATCH] JAL-3210 Two fixed tests (previously not compiling) --- test/jalview/project/Jalview2xmlTests.java | 2 +- test/jalview/ws/SequenceFetcherTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/jalview/project/Jalview2xmlTests.java b/test/jalview/project/Jalview2xmlTests.java index 8188a8d..0609ee5 100644 --- a/test/jalview/project/Jalview2xmlTests.java +++ b/test/jalview/project/Jalview2xmlTests.java @@ -1242,7 +1242,7 @@ public class Jalview2xmlTests extends Jalview2xmlBase AlignmentViewPanel rap = Desktop.getAlignmentPanels(null)[0]; SequenceI rpep = rap.getAlignment().getSequenceAt(0); assertEquals(rpep.getName(), "P30419"); - DBRefEntry[] dbrefs = rpep.getDBRefs(); + DBRefEntry[] dbrefs = (DBRefEntry[]) rpep.getDBRefs().toArray(); assertEquals(dbrefs.length, 3); DBRefEntry dbRef = dbrefs[0]; assertFalse(dbRef instanceof GeneLocus); diff --git a/test/jalview/ws/SequenceFetcherTest.java b/test/jalview/ws/SequenceFetcherTest.java index 0587352..1706870 100644 --- a/test/jalview/ws/SequenceFetcherTest.java +++ b/test/jalview/ws/SequenceFetcherTest.java @@ -55,7 +55,8 @@ public class SequenceFetcherTest Map> seen = new HashMap<>(); jalview.ws.SequenceFetcher sfetcher = new jalview.ws.SequenceFetcher(); String dupes = ""; - for (String src : sfetcher.getOrderedSupportedSources()) + // for (String src : sfetcher.getOrderedSupportedSources()) + for (String src : sfetcher.getNonAlignmentSources()) { List seenitem = seen.get(src); if (seenitem != null) -- 1.7.10.2