RFR: 8299296: Write a test to verify the components selection sends ItemEvent

Sergey Bylokhov serb at openjdk.org
Sat Dec 24 22:15:47 UTC 2022


On Sat, 24 Dec 2022 14:40:27 GMT, Ravi Gupta <duke at openjdk.org> wrote:

> This testcase verifies the following assertions
> 
> a. Selecting an item in the Choice using mouse generates ItemEvent.
> b. Single-click on an Checkbox generates ItemEvent.
> 
> Testing:
> Tested using Mach5(20 times per platform) in macos, linux and windows and got all pass.

test/jdk/java/awt/event/ComponentEvent/ComponentItemEventTest.java line 25:

> 23: 
> 24: import java.awt.*;
> 25: import java.awt.event.*;

Just a small suggestion: "use single-class imports"

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

PR: https://git.openjdk.org/jdk/pull/11786



More information about the client-libs-dev mailing list