aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2017-05-18 15:48:02 +0300
committerPekka Hyvönen <pekka@vaadin.com>2017-05-19 11:21:33 +0300
commitded683a75f5923274952a0a173ca09b61c834c82 (patch)
tree9f146d2ee294b04c1accee53a4764a5bb3c4ef37 /server/src/test
parent84c0bee7e90091b2b86c6c452d1bd87a27d98c7d (diff)
downloadvaadin-framework-ded683a75f5923274952a0a173ca09b61c834c82.tar.gz
vaadin-framework-ded683a75f5923274952a0a173ca09b61c834c82.zip
Add shorthand for adding a column with ComponentRenderer
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/tests/components/grid/GridComponentRendererTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/test/java/com/vaadin/tests/components/grid/GridComponentRendererTest.java b/server/src/test/java/com/vaadin/tests/components/grid/GridComponentRendererTest.java
index 9e6eb33704..d0b2b11dca 100644
--- a/server/src/test/java/com/vaadin/tests/components/grid/GridComponentRendererTest.java
+++ b/server/src/test/java/com/vaadin/tests/components/grid/GridComponentRendererTest.java
@@ -15,7 +15,6 @@ import com.vaadin.tests.util.AlwaysLockedVaadinSession;
import com.vaadin.tests.util.MockUI;
import com.vaadin.ui.Grid;
import com.vaadin.ui.Label;
-import com.vaadin.ui.renderers.ComponentRenderer;
/**
* Test to validate clean detaching in Grid with ComponentRenderer.
@@ -37,11 +36,11 @@ public class GridComponentRendererTest {
dataProvider = DataProvider.ofCollection(backend);
grid = new Grid<>();
grid.setDataProvider(dataProvider);
- grid.addColumn(p -> {
+ grid.addComponentColumn(p -> {
oldComponent = testComponent;
testComponent = new Label();
return testComponent;
- }, new ComponentRenderer());
+ });
new MockUI() {
@Override
public Future<Void> access(Runnable runnable) {