SuiteLauncherDiscoveryRequestBuilder provides a light-weight DSL
for generating a LauncherDiscoveryRequest specifically tailored for
suite execution.
org.junit.platform.engine.discovery.DiscoverySelectors , org.junit.platform.engine.discovery.ClassNameFilter , org.junit.platform.launcher.EngineFilter , org.junit.platform.launcher.TagFilter
| Modifier and Type | Field and Description |
|---|---|
| private final LauncherDiscoveryRequestBuilder | |
| private boolean | |
| private boolean | |
| private boolean | |
| private @Nullable ConfigurationParameters | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | Returns: this builder for method chainingthe class to apply the configuration annotations from;
never suiteClass)nullApply a suite's annotation-based configuration to this builder. |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | Returns: this builder for method chainingthe class to apply the discovery selectors and filter
annotations from; never suiteClass)nullApply a suite's annotation-based discovery selectors and filters to this builder. |
| pack-priv LauncherDiscoveryRequest | |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | Returns: this builder for method chainingthe configuration parameter key under which to store the
value; never key, String null or blankthe value to store value)Add the supplied configuration parameter to the request. |
| pack-priv void | |
| private ClassNameFilter | |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | Returns: this builder for method chainingConfigure whether implicit configuration parameters should be considered. |
| private void | |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | Returns: this builder for method chainingSpecify whether to filter standard class name patterns. |
| private static <A extends Annotation, V> Optional | findAnnotationValues(AnnotatedElement element, Class<A> annotationType, Function<A, V[]> valueExtractor)
|
| pack-priv void | |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | |
| pack-priv SuiteLauncherDiscoveryRequestBuilder | Returns: this builder for method chainingthe parent instance to use for looking
up configuration parameters that have not been explicitly configured;
never parentConfigurationParameters)nullSet the parent configuration parameters to use for the request. |
| private static String | |
| pack-priv static SuiteLauncherDiscoveryRequestBuilder | |
| private List | |
| private MethodSelector | |
| pack-priv void | selectors(DiscoverySelector...
the selectors)DiscoverySelectors to add; never nullAdd all supplied |
| private void | selectors(List<? extends DiscoverySelector>
the selectors)DiscoverySelectors to add; never nullAdd all supplied |
| private static Optional | |
| private static Stream | |
| private MethodSelector | |
| private static MethodSelector | |
| private static MethodSelector |
| delegate | back to summary |
|---|---|
| private final LauncherDiscoveryRequestBuilder delegate | |
| enableParentConfigurationParameters | back to summary |
|---|---|
| private boolean enableParentConfigurationParameters | |
| filterStandardClassNamePatterns | back to summary |
|---|---|
| private boolean filterStandardClassNamePatterns | |
| includeClassNamePatternsUsed | back to summary |
|---|---|
| private boolean includeClassNamePatternsUsed | |
| parentConfigurationParameters | back to summary |
|---|---|
| private @Nullable ConfigurationParameters parentConfigurationParameters | |
| selectedClassNames | back to summary |
|---|---|
| private final Set<String> selectedClassNames | |
| SuiteLauncherDiscoveryRequestBuilder | back to summary |
|---|---|
| private SuiteLauncherDiscoveryRequestBuilder() | |
| addClassAndMethodSelectors | back to summary |
|---|---|
| private void addClassAndMethodSelectors(Class<?> suiteClass) | |
| addExcludeFilters | back to summary |
|---|---|
| private void addExcludeFilters(Class<?> suiteClass) | |
| addIncludeFilters | back to summary |
|---|---|
| private void addIncludeFilters(Class<?> suiteClass) | |
| addOtherSelectors | back to summary |
|---|---|
| private void addOtherSelectors(Class<?> suiteClass) | |
| applyConfigurationParametersFromSuite | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder applyConfigurationParametersFromSuite(Class<?> suiteClass) Apply a suite's annotation-based configuration to this builder. This will apply the configuration from the following annotations.
| |
| applySelectorsAndFiltersFromSuite | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder applySelectorsAndFiltersFromSuite(Class<?> suiteClass) Apply a suite's annotation-based discovery selectors and filters to this builder. This will apply the configuration from the following annotations.
| |
| build | back to summary |
|---|---|
| pack-priv LauncherDiscoveryRequest build() Build the | |
| configurationParameter | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder configurationParameter(String key, String value) Add the supplied configuration parameter to the request.
| |
| configurationParametersResource | back to summary |
|---|---|
| pack-priv void configurationParametersResource(String resourceFile) | |
| createIncludeClassNameFilter | back to summary |
|---|---|
| private ClassNameFilter createIncludeClassNameFilter(String... patterns) | |
| disableImplicitConfigurationParameters | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder disableImplicitConfigurationParameters() Configure whether implicit configuration parameters should be considered. By default, in addition to those parameters that are passed explicitly
to this builder, configuration parameters are read from system properties
and from the
| |
| filters | back to summary |
|---|---|
| private void filters(Filter<?>... filters) Add all supplied The Warning be cautious when registering multiple competing
| |
| filterStandardClassNamePatterns | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder filterStandardClassNamePatterns() Specify whether to filter standard class name patterns. If set to
| |
| findAnnotationValues | back to summary |
|---|---|
| private static <A extends Annotation, V> Optional | |
| listener | back to summary |
|---|---|
| pack-priv void listener(LauncherDiscoveryListener listener) | |
| outputDirectoryCreator | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder outputDirectoryCreator(OutputDirectoryCreator outputDirectoryCreator) | |
| parentConfigurationParameters | back to summary |
|---|---|
| pack-priv SuiteLauncherDiscoveryRequestBuilder parentConfigurationParameters(ConfigurationParameters parentConfigurationParameters) Set the parent configuration parameters to use for the request. Any explicit configuration parameters configured via
| |
| prefixErrorMessageForInvalidSelectMethodUsage | back to summary |
|---|---|
| private static String prefixErrorMessageForInvalidSelectMethodUsage(Class<?> suiteClass, String detailMessage) | |
| request | back to summary |
|---|---|
| pack-priv static SuiteLauncherDiscoveryRequestBuilder request() Create a new
| |
| selectClasses | back to summary |
|---|---|
| private List | |
| selectMethod | back to summary |
|---|---|
| private MethodSelector selectMethod(Class<?> suiteClass, SelectMethod annotation) | |
| selectors | back to summary |
|---|---|
| pack-priv void selectors(DiscoverySelector... selectors) Add all supplied
| |
| selectors | back to summary |
|---|---|
| private void selectors(List<? extends DiscoverySelector> selectors) Add all supplied
| |
| stripped | back to summary |
|---|---|
| private static Optional | |
| toClassSelectors | back to summary |
|---|---|
| private static Stream | |
| toMethodSelector | back to summary |
|---|---|
| private MethodSelector toMethodSelector(Class<?> suiteClass, SelectMethod annotation) | |
| toMethodSelector | back to summary |
|---|---|
| private static MethodSelector toMethodSelector(Class<?> suiteClass, @Nullable Class<?> type, @Nullable String typeName, @Nullable Class<?>[] parameterTypes, String methodName, String parameterTypeNames) | |
| toMethodSelectorFromFQMN | back to summary |
|---|---|
| private static MethodSelector toMethodSelectorFromFQMN(Class<?> suiteClass, SelectMethod annotation) | |