@API(value=Experimental) public class ClasspathResourceSelector extends Object implements DiscoverySelector
DiscoverySelector
that selects the name of a classpath resource
so that TestEngines
can load resources
from the classpath — for example, to load XML or JSON files from the classpath,
potentially within JARs.ClasspathRootSelector
,
getClasspathResourceName()
Modifier and Type | Method and Description |
---|---|
String |
getClasspathResourceName()
Get the name of the selected classpath resource.
|
String |
toString() |
public String getClasspathResourceName()
The name of a classpath resource must follow the semantics
for resource paths as defined in ClassLoader.getResource(String)
.