@API(status=STABLE, since="1.0") public class ClasspathRootSelector extends java.lang.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.
DiscoverySelectors.selectClasspathRoots(java.util.Set)
,
ClasspathResourceSelector
,
Thread.getContextClassLoader()
Modifier and Type | Field and Description |
---|---|
private java.net.URI |
classpathRoot |
Constructor and Description |
---|
ClasspathRootSelector(java.net.URI classpathRoot) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.net.URI |
getClasspathRoot()
Get the selected classpath root directory as an
URI . |
int |
hashCode() |
java.lang.String |
toString() |
public java.net.URI getClasspathRoot()
URI
.@API(status=STABLE, since="1.3") public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@API(status=STABLE, since="1.3") public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object