import org.junit.runner.RunWith;
import org.junit.runners.Suite; @RunWith(Suite.class)
@Suite.SuiteClasses({ investmentTests.class, catalogTests.class, markerTests.class })
public class AllTests { // why on earth I need this class, I have no idea! }
Joe Ocampo provides an overview of setting up an Java-annotation-based Test Suit under JUnit 4.
The most striking point appears to be the [Java compiler imposed] requirement to tie the annotations to a Java class, which itself maybe empty (it itself needs nor contains Java code). Other than this small overhead, this construct appears to perfectly well substitute previous JUnit test suite definitions.
The JUnit team themselves offer this overview:
http://junit.org/junit/javadoc/4.5/org/junit/runner/RunWith.html