@API(value=Experimental) public class ClasspathRootSelector extends Object implements DiscoverySelector
DiscoverySelector
that selects a classpath root so that
TestEngines
can search for class
files or resources within the physical classpath — for example, to
scan for test classes.
Since engines are not expected to modify the classpath, the classpath root represented by this selector must be on the classpath of the context class loader of the thread that uses this selector.
ClasspathResourceSelector
,
Thread.getContextClassLoader()
Modifier and Type | Method and Description |
---|---|
URI |
getClasspathRoot()
Get the selected classpath root directory as an
URI . |
String |
toString() |