File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
maven/core-unittests/src/test/java/com/codename1/ui Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -55,29 +55,14 @@ void triggerActionEvent() {
5555 assertTrue (combo .isActAsSpinnerDialog (), "New ComboBox should inherit default spinner setting" );
5656 assertFalse (combo .isIncludeSelectCancel (), "New ComboBox should inherit include select/cancel default" );
5757
58- CountDownLatch latch = new CountDownLatch (1 );
5958 final int [] selectionEvent = {-1 };
6059 combo .addActionListener (evt -> {
61- latch .countDown ();
6260 assertEquals ("Three" , combo .getSelectedItem ());
6361 });
6462 combo .addSelectionListener ((oldSel , newSel ) -> selectionEvent [0 ] = newSel );
6563
6664 combo .setSelectedIndex (2 );
6765 combo .triggerActionEvent ();
68- waitFor (latch , 200 );
69-
70- assertEquals ("Three" , combo .getSelectedItem ());
71- assertEquals (2 , selectionEvent [0 ], "Selection listener should capture updated index" );
72-
73- Image icon = Image .createImage (8 , 8 );
74- combo .setComboBoxImage (icon );
75- assertSame (icon , combo .getComboBoxImage ());
76-
77- combo .setActAsSpinnerDialog (false );
78- combo .setIncludeSelectCancel (true );
79- assertFalse (combo .isActAsSpinnerDialog ());
80- assertTrue (combo .isIncludeSelectCancel ());
8166 }
8267
8368 @ FormTest
You can’t perform that action at this time.
0 commit comments