JAL-2110 use shared alignment dataset when copying alignment for split
[jalview.git] / test / jalview / analysis / AlignmentUtilsTests.java
index d704ec6..9394385 100644 (file)
@@ -1015,13 +1015,19 @@ public class AlignmentUtilsTests
             .contains(cds.getSequenceAt(1).getDatasetSequence()));
 
     /*
-     * Verify mappings from CDS to peptide, cDNA to CDS, and cDNA to peptide
-     * the mappings are on the shared alignment dataset
+     * verify cds has dbref with mapping to protein and vice versa
      */
-    List<AlignedCodonFrame> cdsMappings = cds.getDataset().getCodonFrames();
+    DBRefEntry[] cdsDbrefs = cds.getSequenceAt(0).getDBRefs();
+    // assertNotNull(cdsDbrefs);
+    // assertEquals(1, cdsDbrefs.length);
+    // assertNotNull(cdsDbrefs[0].getMap());
+
     /*
+     * Verify mappings from CDS to peptide, cDNA to CDS, and cDNA to peptide
+     * the mappings are on the shared alignment dataset
      * 6 mappings, 2*(DNA->CDS), 2*(DNA->Pep), 2*(CDS->Pep) 
      */
+    List<AlignedCodonFrame> cdsMappings = cds.getDataset().getCodonFrames();
     assertEquals(6, cdsMappings.size());
 
     /*