Class NestedClassTestDescriptor

  • All Implemented Interfaces:
    org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>, org.junit.platform.engine.TestDescriptor

    @API(status=INTERNAL,
         since="5.0")
    public class NestedClassTestDescriptor
    extends ClassBasedTestDescriptor
    TestDescriptor for tests based on nested (but not static) Java classes.

    Default Display Names

    The default display name for a non-static nested test class is the simple name of the class.

    Since:
    5.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.junit.platform.engine.support.hierarchical.Node

        org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor, org.junit.platform.engine.support.hierarchical.Node.ExecutionMode, org.junit.platform.engine.support.hierarchical.Node.Invocation<C extends org.junit.platform.engine.support.hierarchical.EngineExecutionContext>, org.junit.platform.engine.support.hierarchical.Node.SkipResult
      • Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor

        org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SEGMENT_TYPE  
      • Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor

        children
    • Constructor Detail

      • NestedClassTestDescriptor

        public NestedClassTestDescriptor​(org.junit.platform.engine.UniqueId uniqueId,
                                         java.lang.Class<?> testClass,
                                         JupiterConfiguration configuration)
    • Method Detail

      • 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