TestDescriptor for @TestTemplate
methods.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final DynamicDescendantFilter | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | TestTemplateTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method templateMethod, Supplier<List<Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration)
|
| private | TestTemplateTestDescriptor(UniqueId uniqueId, String displayName, Class<?> testClass, Method templateMethod, JupiterConfiguration configuration, DynamicDescendantFilter dynamicDescendantFilter)
|
| dynamicDescendantFilter | back to summary |
|---|---|
| private final DynamicDescendantFilter dynamicDescendantFilter | |
| SEGMENT_TYPE | back to summary |
|---|---|
| public static final String SEGMENT_TYPE | |
| TestTemplateTestDescriptor | back to summary |
|---|---|
| public TestTemplateTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method templateMethod, Supplier<List<Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration) | |
| TestTemplateTestDescriptor | back to summary |
|---|---|
| private TestTemplateTestDescriptor(UniqueId uniqueId, String displayName, Class<?> testClass, Method templateMethod, JupiterConfiguration configuration, DynamicDescendantFilter dynamicDescendantFilter) | |
| execute | back to summary |
|---|---|
| public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node. Overrides default org. Doc from org. Execute the behavior of this node. Containers typically do not implement this method since the
The supplied The default implementation returns the supplied
| |
| getDynamicDescendantFilter | back to summary |
|---|---|
| public DynamicDescendantFilter getDynamicDescendantFilter() Implements org.
| |
| getType | back to summary |
|---|---|
| public TestDescriptor. Implements org. Doc from org. Determine the
| |
| mayRegisterTests | back to summary |
|---|---|
| public boolean mayRegisterTests() Overrides default org. Doc from org. Determine if this descriptor may register dynamic tests during execution. The default implementation assumes tests are usually known during
discovery and thus returns
| |
| prepare | back to summary |
|---|---|
| public JupiterEngineExecutionContext prepare(JupiterEngineExecutionContext context) Overrides default org. Implements abstract org. Doc from org. Must be overridden and return a new context with a new
| |
| withUniqueId | back to summary |
|---|---|
| protected TestTemplateTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer) Implements abstract org. Doc from org. Returns shallow copy (without children) of this descriptor with the supplied unique ID.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| TestTemplateExecutor | back to summary |
|---|---|
| pack-priv TestTemplateExecutor() | |
| createInvocationTestDescriptor | back to summary |
|---|---|
| pack-priv TestDescriptor createInvocationTestDescriptor(UniqueId uniqueId, TestTemplateInvocationContext invocationContext, int index) Implements abstract org.
| |
| createInvocationUniqueId | back to summary |
|---|---|
| pack-priv UniqueId createInvocationUniqueId(UniqueId parentUniqueId, int index) Implements abstract org.
| |
| getNoRegisteredProviderErrorMessage | back to summary |
|---|---|
| protected String getNoRegisteredProviderErrorMessage() Implements abstract org.
| |
| getZeroContextsProvidedErrorMessage | back to summary |
|---|---|
| protected String getZeroContextsProvidedErrorMessage(TestTemplateInvocationContextProvider provider) Implements abstract org.
| |
| mayReturnZeroContexts | back to summary |
|---|---|
| pack-priv boolean mayReturnZeroContexts(TestTemplateInvocationContextProvider provider, ExtensionContext extensionContext) Implements abstract org.
| |
| provideContexts | back to summary |
|---|---|
| pack-priv Stream Implements abstract org.
| |
| supports | back to summary |
|---|---|
| pack-priv boolean supports(TestTemplateInvocationContextProvider provider, ExtensionContext extensionContext) Implements abstract org.
| |