From 082929fbdf06374fd6208284be7cc144a75f1cd9 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Wed, 24 Aug 2016 12:55:11 +0300 Subject: 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 --- .../java/com/vaadin/client/ui/grid/ListDataSourceTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client/src/test') 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(); -- cgit v1.2.3