import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
-
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.ColumnSelection;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
+
public class JmolCommandsTest
{
private JmolCommands testee;
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
*/
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)