JAL-2172 reverted to not sorting column selection
[jalview.git] / test / jalview / analysis / GroupingTest.java
index 3afa6e5..df39b81 100644 (file)
@@ -53,10 +53,15 @@ public class GroupingTest
   AlignmentI alignment = new Alignment(
           new SequenceI[] { s1, s2, s3, s4, s5 });
 
+  /*
+   * test for the case where column selections are not added in
+   * left to right order
+   */
+  int[] positions = new int[] { 7, 9, 1 };
+
   @Test(groups = { "Functional" })
   public void testMakeGroupsWithBoth()
   {
-    int[] positions = new int[] { 1, 7, 9 };
     String[] str = new String[alignment.getHeight()];
     int seq = 0;
     for (SequenceI s : alignment.getSequences())
@@ -72,11 +77,6 @@ public class GroupingTest
             alignment.getSequencesArray(), str,
             Arrays.asList(new SequenceGroup[] { sg_12, sg_345 }));
 
-    /*
-     * test for the case where column selections are not added in
-     * left to right order
-     */
-    positions = new int[] { 7, 9, 1 };
     ColumnSelection cs = new ColumnSelection();
     for (int p : positions)
     {