Class ClasspathRootSelector
- java.lang.Object
-
- org.junit.platform.engine.discovery.ClasspathRootSelector
-
- All Implemented Interfaces:
DiscoverySelector
@API(status=STABLE, since="1.0") public class ClasspathRootSelector extends java.lang.Object implements DiscoverySelectorADiscoverySelectorthat selects a classpath root so thatTestEnginescan 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.
- Since:
- 1.0
- See Also:
DiscoverySelectors.selectClasspathRoots(java.util.Set),ClasspathResourceSelector,Thread.getContextClassLoader()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.net.URIgetClasspathRoot()Get the selected classpath root directory as anURI.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getClasspathRoot
public java.net.URI getClasspathRoot()
Get the selected classpath root directory as anURI.
-
equals
@API(status=STABLE, since="1.3") public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object- Since:
- 1.3
-
hashCode
@API(status=STABLE, since="1.3") public int hashCode()- Overrides:
hashCodein classjava.lang.Object- Since:
- 1.3
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-