Before JUnit4 the way that TestSuites were created in JUnit was to create a static method named suite that returned an instance of Test as in:
public static Test suite() {
TestSuite suite= new TestSuite();
suite.addTest(new MoneyTest(“testEquals”));
suite.addTest(new MoneyTest(“testSimpleAdd”));
return suite; }
Junit and Ant both support this. For the ability to migrate older codebases to Gradle, it needs to support this style of declaring test suites as well as the JUnit4 style.