Class NestedClassSelector
java.lang.Object
org.junit.platform.engine.discovery.NestedClassSelector
- All Implemented Interfaces:
DiscoverySelector
@API(status=STABLE,
since="1.6")
public class NestedClassSelector
extends Object
implements DiscoverySelector
A
DiscoverySelector that selects a nested Class
or class name enclosed in other classes so that
TestEngines can discover
tests or containers based on classes.
If Java Class references are provided for the nested class or
the enclosing classes, the selector will return these Class and
their class names accordingly. If class names are provided, the selector
will only attempt to lazily load the Class if
getEnclosingClasses() or getNestedClass() are invoked.
In this context, Java Class means anything that can be referenced
as a Class on the JVM — for example, classes from other JVM
languages such Groovy, Scala, etc.
-
Method Details
-
getEnclosingClassNames
Get the names of the classes enclosing the selected nested class. -
getEnclosingClasses
-
getNestedClassName
Get the name of the selected nested class. -
getNestedClass
-
equals
-
hashCode
public int hashCode() -
toString
-