@@ -44,20 +44,20 @@ public void testComparatorRanksByOrder() throws Exception {
4444 assertSame (m2 ,methods .get (1 ));
4545 }
4646
47- @ Test
48- public void testVariableNamesArentConfusedAsKoanMethodsWhenSorting () throws Exception {
49- Class <? extends Object > clazz = new Object (){
50- String foo ;
51- @ Koan public void bar (){}
52- @ Koan public void foo (){}
53- }. getClass ();
54- KoanMethod m1 = KoanMethod . getInstance ( "" , clazz . getDeclaredMethod ( "bar" ) );
55- KoanMethod m2 = KoanMethod .getInstance ("" , clazz .getDeclaredMethod ("foo " ));
56- List < KoanMethod > methods = Arrays . asList ( m2 , m1 );
57- Collections . sort ( methods , new KoanComparator () );
58- assertSame ( m1 , methods . get ( 0 ));
59- assertSame (m2 ,methods .get (1 ));
60- }
61-
47+ @ Test
48+ public void testVariableNamesArentConfusedAsKoanMethodsWhenSorting () throws Exception {
49+ Class <? extends Object > clazz = new Object (){
50+ @ SuppressWarnings ( "unused" )
51+ String foo ;
52+ @ Koan public void bar (){}
53+ @ Koan public void foo (){}
54+ }. getClass ( );
55+ KoanMethod m1 = KoanMethod .getInstance ("" , clazz .getDeclaredMethod ("bar " ));
56+ KoanMethod m2 = KoanMethod . getInstance ( "" , clazz . getDeclaredMethod ( "foo" ) );
57+ List < KoanMethod > methods = Arrays . asList ( m2 , m1 );
58+ Collections . sort ( methods , new KoanComparator ( ));
59+ assertSame (m1 ,methods .get (0 ));
60+ assertSame ( m2 , methods . get ( 1 ));
61+ }
6262}
6363
0 commit comments