Permalink
Browse files

#477 Altering the implementation of the MaxCore.java to properly dete…

…rmine if the given description is a suite with 0 tests
  • Loading branch information...
1 parent d8ace9e commit 1be2073481ca3515758768379f0361e4e35f4cd4 @hasanein committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/junit/experimental/max/MaxCore.java
@@ -116,7 +116,7 @@ public Runner getRunner() {
}
private Runner buildRunner(Description each) {
- if (each.toString().equals("TestSuite with 0 tests"))
+ if (each.isSuite() && each.testCount() == 0)
return Suite.emptySuite();
if (each.toString().startsWith(MALFORMED_JUNIT_3_TEST_CLASS_PREFIX))
// This is cheating, because it runs the whole class

0 comments on commit 1be2073

Please sign in to comment.