X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fanalysis%2FAlignmentSorterTest.java;h=3b9be23421d5bc8a47d2b32075b444d7d807d7d5;hb=3595f261bc6f18dd8a4780976716bea81bd4fae4;hp=088611ed98d4f4a1a1ce3677d4c8e77056e0c311;hpb=aef3d5fa8e246dd69593b67de48e4f9de1699022;p=jalview.git diff --git a/test/jalview/analysis/AlignmentSorterTest.java b/test/jalview/analysis/AlignmentSorterTest.java index 088611e..3b9be23 100644 --- a/test/jalview/analysis/AlignmentSorterTest.java +++ b/test/jalview/analysis/AlignmentSorterTest.java @@ -31,10 +31,9 @@ public class AlignmentSorterTest /* * sort with no score features does nothing */ - PA.setValue(AlignmentSorter.class, "lastSortByFeatureScore", null); + PA.setValue(AlignmentSorter.class, "sortByFeatureCriteria", null); - AlignmentSorter.sortByFeature((String) null, null, 0, al.getWidth(), - al, + AlignmentSorter.sortByFeature(null, null, 0, al.getWidth(), al, AlignmentSorter.FEATURE_SCORE); assertSame(al.getSequenceAt(0), seq1); assertSame(al.getSequenceAt(1), seq2); @@ -65,9 +64,9 @@ public class AlignmentSorterTest * sort by ascending score, no filter on feature type or group * NB sort order for the same feature set (none) gets toggled, so descending */ - PA.setValue(AlignmentSorter.class, "sortByFeatureScoreAscending", true); - AlignmentSorter.sortByFeature((String) null, null, 0, al.getWidth(), - al, AlignmentSorter.FEATURE_SCORE); + PA.setValue(AlignmentSorter.class, "sortByFeatureAscending", true); + AlignmentSorter.sortByFeature(null, null, 0, al.getWidth(), al, + AlignmentSorter.FEATURE_SCORE); assertSame(al.getSequenceAt(3), seq3); // -0.5 assertSame(al.getSequenceAt(2), seq2); // 2.5 assertSame(al.getSequenceAt(1), seq1); // 3.0 @@ -76,8 +75,8 @@ public class AlignmentSorterTest /* * repeat sort toggles order - now ascending */ - AlignmentSorter.sortByFeature((String) null, null, 0, al.getWidth(), - al, AlignmentSorter.FEATURE_SCORE); + AlignmentSorter.sortByFeature(null, null, 0, al.getWidth(), al, + AlignmentSorter.FEATURE_SCORE); assertSame(al.getSequenceAt(0), seq3); // -0.5 assertSame(al.getSequenceAt(1), seq2); // 2.5 assertSame(al.getSequenceAt(2), seq1); // 3.0 @@ -116,7 +115,7 @@ public class AlignmentSorterTest */ // fails because seq1.findPosition(4) returns 4 // although residue 4 is in column 5! - JAL-2544 - AlignmentSorter.sortByFeature((String) null, null, 0, 4, al, + AlignmentSorter.sortByFeature(null, null, 0, 4, al, AlignmentSorter.FEATURE_SCORE); assertSame(al.getSequenceAt(0), seq3); // -4 assertSame(al.getSequenceAt(1), seq1); // 2.0