Permalink
Browse files

Making Super and Sub member classes as suggested.

  • Loading branch information...
1 parent f0319c2 commit 3920f3fe11dffc904e1ab41a9ff4fc9d36b1c25b Jesse Glick committed Jan 31, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/test/java/org/junit/internal/MethodSorterTest.java
@@ -8,12 +8,6 @@
@Test public void getDeclaredMethods() throws Exception {
assertEquals("[void epsilon(), void beta(int[][]), java.lang.Object alpha(int,double,java.lang.Thread), void delta(), int gamma(), void gamma(boolean)]", declaredMethods(Dummy.class));
- class Super {
- void testOne() {}
- }
- class Sub extends Super {
- void testTwo() {}
- }
assertEquals("[void testOne()]", declaredMethods(Super.class));
assertEquals("[void testTwo()]", declaredMethods(Sub.class));
}
@@ -30,5 +24,11 @@ void gamma(boolean b) {}
void delta() {}
void epsilon() {}
}
+ private static class Super {
+ void testOne() {}
+ }
+ private static class Sub extends Super {
+ void testTwo() {}
+ }
}

0 comments on commit 3920f3f

Please sign in to comment.