Merge branch 'alpha/origin_2022_JAL-3066_Jalview_212_slivka-integration' into spike...
[jalview.git] / test / jalview / ext / jmol / JmolCommandsTest.java
index 056d231..366d208 100644 (file)
@@ -31,7 +31,6 @@ import java.util.Map;
 
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
-
 import jalview.datamodel.Alignment;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.ColumnSelection;
@@ -45,6 +44,7 @@ import jalview.structure.StructureCommandI;
 import jalview.structure.StructureMapping;
 import jalview.structure.StructureSelectionManager;
 
+
 public class JmolCommandsTest
 {
   private JmolCommands testee;
@@ -77,7 +77,6 @@ public class JmolCommandsTest
     SequenceI[][] seqs = new SequenceI[][] { { seq1 }, { seq2 } };
     String[] files = new String[] { "seq1.pdb", "seq2.pdb" };
     StructureSelectionManager ssm = new StructureSelectionManager();
-
     /*
      * map residues 1-10 to residues 21-30 (atoms 105-150) in structures
      */
@@ -92,11 +91,11 @@ public class JmolCommandsTest
     StructureMapping sm2 = new StructureMapping(seq2, "seq2.pdb", "pdb2",
             "B", map, null);
     ssm.addStructureMapping(sm2);
-
     String[] commands = testee.colourBySequence(ssm,
             files,
             seqs, sr, af.alignPanel);
     assertEquals(commands.length, 2);
+    assertEquals(commands[0].commands.length, 1); // from 2.12 merge from 2.11.2
 
     String chainACommand = commands[0];
     // M colour is #82827d == (130, 130, 125) (see strand.html help page)
@@ -236,7 +235,7 @@ public class JmolCommandsTest
   public void testSetBackgroundColour()
   {
     StructureCommandI cmd = testee.setBackgroundColour(Color.PINK);
-    assertEquals(cmd.getCommand(), "background [255, 175, 175]");
+    assertEquals(cmd.getCommand(), "background [255,175,175]");
   }
 
   @Test(groups = "Functional")