diff --git a/testing/junit_ext/src/java/com/google/j2objc/testing/JUnitTestRunner.java b/testing/junit_ext/src/java/com/google/j2objc/testing/JUnitTestRunner.java index 6894c05df0..2b28de843b 100644 --- a/testing/junit_ext/src/java/com/google/j2objc/testing/JUnitTestRunner.java +++ b/testing/junit_ext/src/java/com/google/j2objc/testing/JUnitTestRunner.java @@ -38,7 +38,6 @@ import org.junit.runner.RunWith; import org.junit.runner.notification.Failure; import org.junit.runner.notification.RunListener; -import org.junit.runners.JUnit4; import org.junit.runners.Suite; /*-[ @@ -259,15 +258,8 @@ protected boolean isJUnit3TestClass(Class cls) { return false; } - /** - * @return true if {@param cls} is {@link JUnit4} annotated. - */ + /** @return true if {@param cls} is {@link RunWith} annotated. */ protected boolean isJUnit4TestClass(Class cls) { - // Need to find test classes, otherwise crashes with b/11790448. - if (!cls.getName().endsWith("Test")) { - return false; - } - // Check the annotation. return cls.getAnnotation(RunWith.class) != null; }