Class TestMethodTestDescriptor

  • All Implemented Interfaces:
    ResourceLockAware, TestClassAware, Validatable, org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>, org.junit.platform.engine.TestDescriptor
    Direct Known Subclasses:
    TestFactoryTestDescriptor, TestTemplateInvocationTestDescriptor

    @API(status=INTERNAL,
         since="5.0")
    public class TestMethodTestDescriptor
    extends MethodBasedTestDescriptor
    TestDescriptor for @Test methods.

    Default Display Names

    The default display name for a test method is the name of the method concatenated with a comma-separated list of parameter types in parentheses. The names of parameter types are retrieved using Class.getSimpleName(). For example, the default display name for the following test method is testUser(TestInfo, User).

       @Test
       void testUser(TestInfo testInfo, @Mock User user) { ... }
     
    Since:
    5.0