Class MethodBasedTestDescriptor

    • Constructor Detail

      • MethodBasedTestDescriptor

        MethodBasedTestDescriptor​(org.junit.platform.engine.UniqueId uniqueId,
                                  java.lang.Class<?> testClass,
                                  java.lang.reflect.Method testMethod,
                                  java.util.function.Supplier<java.util.List<java.lang.Class<?>>> enclosingInstanceTypes,
                                  JupiterConfiguration configuration)
      • MethodBasedTestDescriptor

        MethodBasedTestDescriptor​(org.junit.platform.engine.UniqueId uniqueId,
                                  java.lang.String displayName,
                                  java.lang.Class<?> testClass,
                                  java.lang.reflect.Method testMethod,
                                  JupiterConfiguration configuration)
    • Method Detail

      • getTestMethod

        public final java.lang.reflect.Method getTestMethod()
      • getTags

        public final java.util.Set<org.junit.platform.engine.TestTag> getTags()
        Specified by:
        getTags in interface org.junit.platform.engine.TestDescriptor
        Overrides:
        getTags in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
      • validate

        public void validate​(org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter)
        Description copied from interface: Validatable
        Validate the state of this descriptor and report any issues found to the supplied DiscoveryIssueReporter.
        Specified by:
        validate in interface Validatable
      • getResourceLocksProviderEvaluator

        public java.util.function.Function<org.junit.jupiter.api.parallel.ResourceLocksProvider,​java.util.Set<org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock>> getResourceLocksProviderEvaluator()
        Specified by:
        getResourceLocksProviderEvaluator in interface ResourceLockAware
      • nodeSkipped

        public void nodeSkipped​(JupiterEngineExecutionContext context,
                                org.junit.platform.engine.TestDescriptor descriptor,
                                org.junit.platform.engine.support.hierarchical.Node.SkipResult result)
        Invoke TestWatcher.testDisabled(ExtensionContext, Optional) on each registered TestWatcher, in registration order.
        Specified by:
        nodeSkipped in interface org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
        Since:
        5.4
      • invokeTestWatchers

        protected void invokeTestWatchers​(JupiterEngineExecutionContext context,
                                          boolean reverseOrder,
                                          java.util.function.Consumer<org.junit.jupiter.api.extension.TestWatcher> callback)
        Since:
        5.4