Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Lidestrom2020-07-31 08:53:52 +0000
committerJens Lidestrom2020-07-31 08:54:26 +0000
commitd555eca60cde55074b71cea8f37eaa70b652a4c4 (patch)
tree896d4ebdfbca57a5312fa49e7ba5cb4fbb32340a
parentc759758724ad6db47fa7321d41c6fb3096c69d20 (diff)
downloadeclipse.platform.ui-d555eca60cde55074b71cea8f37eaa70b652a4c4.tar.gz
eclipse.platform.ui-d555eca60cde55074b71cea8f37eaa70b652a4c4.tar.xz
eclipse.platform.ui-d555eca60cde55074b71cea8f37eaa70b652a4c4.zip
Bug 565758 - Fix LocalDateSelectionPropertyTest
This test failed on the 31 each month, because control.setMonth(10) fails. Change-Id: Ib9011e56653ad88684227635da886e831ce89f33
-rw-r--r--tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/swt/LocalDateSelectionPropertyTest.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/swt/LocalDateSelectionPropertyTest.java b/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/swt/LocalDateSelectionPropertyTest.java
index b064d7f7591..dfb27ca04d4 100644
--- a/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/swt/LocalDateSelectionPropertyTest.java
+++ b/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/swt/LocalDateSelectionPropertyTest.java
@@ -53,9 +53,7 @@ public class LocalDateSelectionPropertyTest extends AbstractSWTTestCase {
ValueChangeEventTracker<LocalDate> tracker = new ValueChangeEventTracker<>();
time.addValueChangeListener(tracker);
- control.setYear(1999);
- control.setMonth(10); // 0 based month
- control.setDay(22);
+ control.setDate(1999, 10, 22); // 0 based month
control.notifyListeners(SWT.Selection, null);

Back to the top