infinitest/infinitest — Issue #76: Disparity between Infinitest & JUnit runner for protected inner test classes
Author: elefevre
Created: 2012-01-19 22:01:53+00:00
State: open

When a test class is an inner, protected class, it is ignored by the JUnit Eclipse plugin (that is, when selecting Run As, I do not get the "JUnit Test" option).
However, Infinitest apparently still attempt to run the test, and fails.

Example:

package test;
import junit.framework.TestCase;
import org.junit.Test;
public class InfinitestBugTest {
protected static class ContainsWarnings extends TestCase {
public ContainsWarnings() {
super("test");
}
@Test
public void test() {
}
}
}

The error message I get for Infinitest is

Description	Resource	Path	Location	Type
AssertionFailedError (Class test.InfinitestBugTest$ContainsWarnings is not public) in InfinitestBugTest$ContainsWarnings.	line 0	Infinitest Test Failure

Note: I do _not_ get the error message if I remove the "extends TestCase" clause.