aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java b/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java
index 397bc27b82..40c753943e 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java
@@ -9,6 +9,7 @@ import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
+import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
@@ -487,6 +488,12 @@ public class GridTest {
testValueProviderSorting(10.1, 200, 3000.1, 4000);
}
+ @Test
+ public void defaultSorting_mutuallyComparableTypes() {
+ testValueProviderSorting(new Date(10), new java.sql.Date(1000000),
+ new Date(100000000));
+ }
+
private static void testValueProviderSorting(Object... expectedOrder) {
SerializableComparator<Object> comparator = new Grid<>()
.addColumn(ValueProvider.identity())