Merge branch 'trailm' into trial_fixMakeCDSDBRefPropagation
authorJim Procter <jprocter@issues.jalview.org>
Thu, 25 Aug 2016 11:13:56 +0000 (12:13 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 25 Aug 2016 11:13:56 +0000 (12:13 +0100)
1  2 
src/jalview/analysis/AlignmentUtils.java
test/jalview/analysis/AlignmentUtilsTests.java

@@@ -994,12 -994,14 +994,14 @@@ public class AlignmentUtilsTest
  
      /*
       * need a sourceDbRef if we are to construct dbrefs to the CDS
 -     * sequence
 +     * sequence from the dna contig sequences
       */
      DBRefEntry dbref = new DBRefEntry("ENSEMBL", "0", "dna1");
-     dna1.getDatasetSequence().setSourceDBRef(dbref);
+     dna1.getDatasetSequence().addDBRef(dbref);
+     org.testng.Assert.assertEquals(dbref, dna1.getPrimaryDBRefs().get(0));
      dbref = new DBRefEntry("ENSEMBL", "0", "dna2");
-     dna2.getDatasetSequence().setSourceDBRef(dbref);
+     dna2.getDatasetSequence().addDBRef(dbref);
+     org.testng.Assert.assertEquals(dbref, dna2.getPrimaryDBRefs().get(0));
  
      /*
       * CDS sequences are 'discovered' from dna-to-protein mappings on the alignment