Modify TestB.java and apply Both the categories "SlowTests.class" and "FastTests.class" to the whole class.
public class TestB
{
@Test
public void c()
{
System.out.println( "B::c()" ) ;
}
@Test
public void d()
{
System.out.println( "B::d()" ) ;
}
}
Create a new file "SlowAndFastSuite.java" . This suit should include both the "SlowTest" and "FastTest" categories.
Modify "TestRunner.java" to use this suite with the change:
Result result = JUnitCore.runClasses(SlowAndFastTestSuite.class);