JAL-2349 fix up tests for Java 11 compatibility and require sequence associated mappa...
[jalview.git] / test / jalview / analysis / AlignmentUtilsTests.java
index 4baa384..54093ee 100644 (file)
@@ -2626,6 +2626,11 @@ public class AlignmentUtilsTests
                     && al.getAlignmentAnnotation().length == 1);
     AlignmentAnnotation alan = al.findAnnotations(sq, null, cm_aan.label)
             .iterator().next();
+    ContactMatrixI t_cm = al.getContactMatrixFor(alan);
+    assertNotNull("No contact map for the transferred annotation row.",t_cm);
+    assertTrue(t_cm instanceof SeqDistanceContactMatrix);
+    assertTrue(((SeqDistanceContactMatrix)t_cm).hasReferenceSeq());
+    
     ContactListI cl = al.getContactListFor(alan, 1);
     assertNotNull(
             "No contact matrix recovered after reference annotation transfer",