Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8359896

[TestBug][JUnit5] Possible configuration error

XMLWordPrintable

    • b21

      Following two unit tests have 2 test annotations, @RepeatedTest and @Test
      ServiceLifecycleTest.cancelCalledFromOnSucceeded()
      ServiceLifecycleTest.cancelCalledFromOnFailed()

      This results in warning message:

          WARNING: Possible configuration error: method [public void test.javafx.concurrent.ServiceLifecycleTest.cancelCalledFromOnSucceeded()] resulted in multiple TestDescriptors [org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor, org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor]. This is typically the result of annotating a method with multiple competing annotations such as @Test, @RepeatedTest, @ParameterizedTest, @TestFactory, etc.

          WARNING: Possible configuration error: method [public void test.javafx.concurrent.ServiceLifecycleTest.cancelCalledFromOnFailed()] resulted in multiple TestDescriptors [org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor, org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor]. This is typically the result of annotating a method with multiple competing annotations such as @Test, @RepeatedTest, @ParameterizedTest, @TestFactory, etc.

            arapte Ambarish Rapte
            arapte Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: