JAL-3210 Two fixed tests (previously not compiling)
authorBen Soares <bsoares@dundee.ac.uk>
Thu, 10 Oct 2019 14:29:49 +0000 (15:29 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Thu, 10 Oct 2019 14:29:49 +0000 (15:29 +0100)
test/jalview/project/Jalview2xmlTests.java
test/jalview/ws/SequenceFetcherTest.java

index 8188a8d..0609ee5 100644 (file)
@@ -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);
index 0587352..1706870 100644 (file)
@@ -55,7 +55,8 @@ public class SequenceFetcherTest
     Map<String, List<DbSourceProxy>> 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<DbSourceProxy> seenitem = seen.get(src);
       if (seenitem != null)