diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-08-24 12:55:11 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-08-25 06:10:15 +0000 |
commit | 082929fbdf06374fd6208284be7cc144a75f1cd9 (patch) | |
tree | ac8cebb499460c2c66c8f0f9d207b7baaede404b /client/src/test | |
parent | 36111d94fab942264199a106bfb7e13751cb3b86 (diff) | |
download | vaadin-framework-082929fbdf06374fd6208284be7cc144a75f1cd9.tar.gz vaadin-framework-082929fbdf06374fd6208284be7cc144a75f1cd9.zip |
Allow multiple data change handlers in client-side data sources
This patch moves Registration to shared so it can be used in
both client and server
Change-Id: I16757f70beb474403903bbcf92c7f850aed68b88
Diffstat (limited to 'client/src/test')
-rw-r--r-- | client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java b/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java index 89a2e80679..b3a4f24ebb 100644 --- a/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java +++ b/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java @@ -56,7 +56,7 @@ public class ListDataSourceTest { DataChangeHandler handler = EasyMock .createNiceMock(DataChangeHandler.class); - ds.setDataChangeHandler(handler); + ds.addDataChangeHandler(handler); handler.dataAdded(4, 1); EasyMock.expectLastCall(); @@ -80,7 +80,7 @@ public class ListDataSourceTest { DataChangeHandler handler = EasyMock .createNiceMock(DataChangeHandler.class); - ds.setDataChangeHandler(handler); + ds.addDataChangeHandler(handler); handler.dataAdded(4, 3); EasyMock.expectLastCall(); @@ -106,7 +106,7 @@ public class ListDataSourceTest { DataChangeHandler handler = EasyMock .createNiceMock(DataChangeHandler.class); - ds.setDataChangeHandler(handler); + ds.addDataChangeHandler(handler); handler.dataRemoved(3, 1); EasyMock.expectLastCall(); @@ -128,7 +128,7 @@ public class ListDataSourceTest { DataChangeHandler handler = EasyMock .createNiceMock(DataChangeHandler.class); - ds.setDataChangeHandler(handler); + ds.addDataChangeHandler(handler); handler.dataRemoved(0, 3); EasyMock.expectLastCall(); @@ -148,7 +148,7 @@ public class ListDataSourceTest { DataChangeHandler handler = EasyMock .createNiceMock(DataChangeHandler.class); - ds.setDataChangeHandler(handler); + ds.addDataChangeHandler(handler); handler.dataRemoved(0, 4); EasyMock.expectLastCall(); |