RFR: 8342602: Remove JButton/PressedButtonRightClickTest test

Sergey Bylokhov serb at openjdk.org
Fri Oct 18 17:07:39 UTC 2024


On Fri, 18 Oct 2024 16:41:43 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The `javax/swing/JButton/PressedButtonRightClickTest.java` test that was added by [JDK-8049069](https://bugs.openjdk.org/browse/JDK-8049069) fully duplicates an existing test `javax/swing/JButton/bug4490179.java`.
> 
> To save time running tests, I'm removing `PressedButtonRightClickTest.java`.

The `bug4490179` verifies the code using the listener added to the button while the `PressedButtonRightClickTest` verifies the code using `getModel().isPressed()` which is not necessary the same.

btw it is unclear why the bug4490179 test is not mention in the https://bugs.openjdk.org/browse/JDK-8049069

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

PR Comment: https://git.openjdk.org/jdk/pull/21587#issuecomment-2422894881


More information about the client-libs-dev mailing list