JAL-1705 updated for change to CrossRef signature
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 19 Feb 2016 16:59:42 +0000 (16:59 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 19 Feb 2016 16:59:42 +0000 (16:59 +0000)
test/jalview/ws/SequenceFetcherTest.java
test/jalview/ws/seqfetcher/DbRefFetcherTest.java

index 7a9b553..d7058d0 100644 (file)
@@ -7,6 +7,7 @@ import jalview.datamodel.SequenceI;
 import jalview.ws.seqfetcher.ASequenceFetcher;
 import jalview.ws.seqfetcher.DbSourceProxy;
 
+import java.util.ArrayList;
 import java.util.Enumeration;
 import java.util.List;
 import java.util.Vector;
@@ -116,7 +117,8 @@ public class SequenceFetcherTest
                 System.out.println("Type: " + types[t]);
                 SequenceI[] prod = jalview.analysis.CrossRef
                         .findXrefSequences(al.getSequencesArray(), dna,
-                                types[t]).getSequencesArray();
+                                types[t], null, new ArrayList<SequenceI>())
+                        .getSequencesArray();
                 System.out.println("Found "
                         + ((prod == null) ? "no" : "" + prod.length)
                         + " products");
@@ -199,7 +201,7 @@ public class SequenceFetcherTest
           // sequences.
           SequenceI[] seqs = al.getSequencesArray();
           Alignment prodal = jalview.analysis.CrossRef.findXrefSequences(
-                  seqs, dna, null, ds);
+                  seqs, dna, null, ds, new ArrayList<SequenceI>());
           System.out.println("Found "
                   + ((prodal == null) ? "no" : "" + prodal.getHeight())
                   + " products");
index fae5778..b9e209f 100644 (file)
@@ -179,8 +179,8 @@ public class DbRefFetcherTest
     assertEquals("Expected local reference map to be 3 nucleotides", dr[0]
             .getMap().getWidth(), 3);
     AlignmentI sprods = CrossRef.findXrefSequences(
-            alsq.getSequencesArray(), true, dr[0].getSource(),
-            alsq.getDataset());
+            alsq.getSequencesArray(), true, dr[0].getSource(), alsq,
+            new ArrayList<SequenceI>());
     assertNotNull(
             "Couldn't recover cross reference sequence from dataset. Was it ever added ?",
             sprods);