From: Ben Soares Date: Thu, 10 Oct 2019 14:29:49 +0000 (+0100) Subject: JAL-3210 Two fixed tests (previously not compiling) X-Git-Tag: Release_2_11_4_0~45^2~18^2~117 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a937729355138d88dd891dc47b1a38a786f058d5;p=jalview.git JAL-3210 Two fixed tests (previously not compiling) --- 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)