Class ClasspathRootSelector

  • All Implemented Interfaces:

    public class ClasspathRootSelector
    extends java.lang.Object
    implements DiscoverySelector
    A 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.

    See Also:
    ClasspathResourceSelector, Thread.getContextClassLoader()
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description getClasspathRoot​()
      Get the selected classpath root directory as an URI.
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getClasspathRoot

        public getClasspathRoot​()
        Get the selected classpath root directory as an URI.
      • toString

        public java.lang.String toString​()
        toString in class java.lang.Object