summaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-05-23 14:04:20 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-23 14:04:20 +0300
commit7b506a70c89c83451b113a7549b6fbe2268b5b26 (patch)
tree0e16b398deeada83ecf31388a31bf7108e0210cb /server/src/test
parent6b6dc9306a749e24f498507d0eddce10b5c6cbf5 (diff)
downloadvaadin-framework-7b506a70c89c83451b113a7549b6fbe2268b5b26.tar.gz
vaadin-framework-7b506a70c89c83451b113a7549b6fbe2268b5b26.zip
Correctly use id to identify data when refreshing (#9398)
This patch refactors the internals of Grid single selection model implementation. Fixes #9380
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/data/GridAsSingleSelectInBinderTest.java3
-rw-r--r--server/src/test/java/com/vaadin/data/provider/ReplaceListDataProviderTest.java1
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/test/java/com/vaadin/data/GridAsSingleSelectInBinderTest.java b/server/src/test/java/com/vaadin/data/GridAsSingleSelectInBinderTest.java
index 077ca185a2..e38b86f6db 100644
--- a/server/src/test/java/com/vaadin/data/GridAsSingleSelectInBinderTest.java
+++ b/server/src/test/java/com/vaadin/data/GridAsSingleSelectInBinderTest.java
@@ -34,7 +34,8 @@ public class GridAsSingleSelectInBinderTest
extends SingleSelectionModelImpl<Sex> {
public void setSelectedFromClient(Sex item) {
- setSelectedFromClient(itemToKey(item));
+ setSelectedFromClient(
+ getGrid().getDataCommunicator().getKeyMapper().key(item));
}
}
diff --git a/server/src/test/java/com/vaadin/data/provider/ReplaceListDataProviderTest.java b/server/src/test/java/com/vaadin/data/provider/ReplaceListDataProviderTest.java
index 7552691413..5c7448d17e 100644
--- a/server/src/test/java/com/vaadin/data/provider/ReplaceListDataProviderTest.java
+++ b/server/src/test/java/com/vaadin/data/provider/ReplaceListDataProviderTest.java
@@ -45,5 +45,4 @@ public class ReplaceListDataProviderTest {
Assert.assertTrue("Old test object should be stale",
dataProvider.isStale(TEST_OBJECT));
}
-
}