RFR: 8359896: [TestBug][JUnit5] Possible configuration error

Ambarish Rapte arapte at openjdk.org
Wed Jun 18 09:09:00 UTC 2025


A simple change to remove `@Test` annotation from two graphics unit tests.

The two tests have 2 test annotations `@Test` and `@RepeatedTest`, It 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.

-------------

Commit messages:
 - rm @Test annotation

Changes: https://git.openjdk.org/jfx/pull/1833/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1833&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8359896
  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
  Patch: https://git.openjdk.org/jfx/pull/1833.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1833/head:pull/1833

PR: https://git.openjdk.org/jfx/pull/1833


More information about the openjfx-dev mailing list