JAL-2490 performant lookup of features for sorting
[jalview.git] / test / jalview / analysis / AlignmentSorterTest.java
index 0255f66..3b9be23 100644 (file)
@@ -31,7 +31,7 @@ public class AlignmentSorterTest
     /*
      * sort with no score features does nothing
      */
-    PA.setValue(AlignmentSorter.class, "lastSortByFeatureScore", null);
+    PA.setValue(AlignmentSorter.class, "sortByFeatureCriteria", null);
 
     AlignmentSorter.sortByFeature(null, null, 0, al.getWidth(), al,
             AlignmentSorter.FEATURE_SCORE);
@@ -62,9 +62,9 @@ public class AlignmentSorterTest
 
     /*
      * sort by ascending score, no filter on feature type or group
-     * NB sort order for the same feature set (none) is toggled so descending
+     * NB sort order for the same feature set (none) gets toggled, so descending
      */
-    PA.setValue(AlignmentSorter.class, "sortByFeatureScoreAscending", true);
+    PA.setValue(AlignmentSorter.class, "sortByFeatureAscending", true);
     AlignmentSorter.sortByFeature(null, null, 0, al.getWidth(), al,
             AlignmentSorter.FEATURE_SCORE);
     assertSame(al.getSequenceAt(3), seq3); // -0.5
@@ -114,7 +114,7 @@ public class AlignmentSorterTest
      * seq1 is now 2.0, seq3 is now -4
      */
     // fails because seq1.findPosition(4) returns 4
-    // although residue 4 is in column 5!
+    // although residue 4 is in column 5! - JAL-2544
     AlignmentSorter.sortByFeature(null, null, 0, 4, al,
             AlignmentSorter.FEATURE_SCORE);
     assertSame(al.getSequenceAt(0), seq3); // -4