JAL-2719 JAL-1264 add annotation elements so “Add Reference Annotation” menu should... testpaches/JAL-2719_JAL-1264_testfails
authorJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:48:54 +0000 (11:48 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:48:54 +0000 (11:48 +0100)
test/jalview/gui/PopupMenuTest.java

index 6f60588..324c82f 100644 (file)
@@ -238,6 +238,7 @@ public class PopupMenuTest
     // PDB.secondary structure on Sequence0
     AlignmentAnnotation annotation = new AlignmentAnnotation(
             "secondary structure", "", 0);
+    annotation.annotations = new Annotation[] { new Annotation(2f) };
     annotation.setCalcId("PDB");
     seqs.get(0).getDatasetSequence().addAlignmentAnnotation(annotation);
     if (addToSequence)
@@ -252,6 +253,7 @@ public class PopupMenuTest
     // PDB.Temp on Sequence1
     annotation = new AlignmentAnnotation("Temp", "", 0);
     annotation.setCalcId("PDB");
+    annotation.annotations = new Annotation[] { new Annotation(2f) };
     seqs.get(1).getDatasetSequence().addAlignmentAnnotation(annotation);
     if (addToSequence)
     {
@@ -265,6 +267,7 @@ public class PopupMenuTest
     // JMOL.secondary structure on Sequence0
     annotation = new AlignmentAnnotation("secondary structure", "", 0);
     annotation.setCalcId("Jmol");
+    annotation.annotations = new Annotation[] { new Annotation(2f) };
     seqs.get(0).getDatasetSequence().addAlignmentAnnotation(annotation);
     if (addToSequence)
     {