Try this annotation at your test class.
@RunWith(JUnit4.class)
public class MyTestCase extends MapInterfaceTest {...}
This should force Junit to use Junit4 not Junit3 in the execution. Maybe that works for your Testcase.
However, JUnit4 will not pick up old-style "test*" test methods, as it relies on @Test
annotations. If the class you're extending doesn't have these annotations and you can't add them directly, you can override the tests in order to add the annotations in the subclass, like so:
@Test
@Override
public void testFoo()
{
super.testFoo();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…