Top Description Interfaces Classes
module org.junit.platform.engine

Package org.junit.platform.engine.discovery

Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

Concrete selectors and filters to be used in discovery requests.

Interface Summary

Modifier and TypeInterface and Description
public interface
ClassNameFilter

DiscoveryFilter that is applied to the name of a Class.

public interface
public interface
PackageNameFilter

DiscoveryFilter that is applied to the name of a Package.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractClassNameFilter

Abstract ClassNameFilter that servers as a superclass for filters including or excluding fully qualified class names based on pattern-matching.

public class
ClasspathResourceSelector

A 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.

public class
ClasspathRootSelector

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.

public class
ClassSelector

A DiscoverySelector that selects a Class or class name so that TestEngines can discover tests or containers based on classes.

public class
DirectorySelector

A DiscoverySelector that selects a directory so that TestEngines can discover tests or containers based on directories in the file system.

pack-priv class
public class
DiscoverySelectors

Collection of static factory methods for creating DiscoverySelectors.

pack-priv class
ExcludeClassNameFilter

ClassNameFilter that matches fully qualified class names against patterns in the form of regular expressions.

pack-priv class
ExcludePackageNameFilter

PackageNameFilter that matches fully qualified package names that are not prefixed by one of the package names provided to the filter.

public class
FilePosition

Position inside a file represented by line and column numbers.

public class
FileSelector

A DiscoverySelector that selects a file so that TestEngines can discover tests or containers based on files in the file system.

pack-priv class
IncludeClassNameFilter

ClassNameFilter that matches fully qualified class names against patterns in the form of regular expressions.

pack-priv class
IncludePackageNameFilter

PackageNameFilter that matches fully qualified package names that are prefixed by one of the package names provided to the filter.

public class
IterationSelector

A DiscoverySelector that selects the iterations of a parent DiscoverySelector via their indices so that TestEngines can discover a subset of the iterations of tests or containers.

public class
MethodSelector

A DiscoverySelector that selects a Method or a combination of class name, method name, and parameter types so that TestEngines can discover tests or containers based on methods.

public class
ModuleSelector

A DiscoverySelector that selects a module name so that TestEngines can discover tests or containers based on modules.

public class
NestedClassSelector

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.

public class
NestedMethodSelector

A DiscoverySelector that selects a nested Method or a combination of enclosing class names, class name, method name, and parameter types so that TestEngines can discover tests or containers based on methods.

public class
PackageSelector

A DiscoverySelector that selects a package name so that TestEngines can discover tests or containers based on packages.

public class
UniqueIdSelector

A DiscoverySelector that selects a UniqueId so that TestEngines can discover tests or containers based on unique IDs.

public class
UriSelector

A DiscoverySelector that selects a URI so that TestEngines can discover tests or containers based on URIs.