/*
Represents a collection of test classes present on the classpath. You can add individual classes or entire packages. By default sub-packages are included recursively, but methods are provided to allow for arbitrary inclusion or exclusion of sub-packages. Typically a
TestGrouping
will have only one root package, but this is not a requirement. Not needed for 1.0 SDK.
Include all tests in the given packages and all their sub-packages, unless otherwise specified. Each of the given packages must contain at least one test class, either directly or in a sub-package.
-
Parameters:
-
packageNames
Names of packages to add.
Returns:
-
The
for method chaining.TestGrouping
Exclude all tests in the given packages and all their sub-packages, unless otherwise specified.
-
Parameters:
-
packageNames
Names of packages to remove.
Returns:
-
The
for method chaining.TestGrouping
-
Returns:
-
The first package name passed to
, or null if that method was never called.addPackagesRecursive(java.lang.String[])

// The cast below is not necessary with the Java 5 compiler, but necessary with the Java 6 compiler,