summaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2017-11-17 10:46:14 +0200
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-11-17 10:46:14 +0200
commit535f259607fa3ee1b4f3da09f4df0b4d40449965 (patch)
tree6ce98558cce19e01e02482851a6c58cfddf36ee8 /server/src/test
parentce3efd94b34c77ce470af291c501d679e2872cdd (diff)
downloadvaadin-framework-535f259607fa3ee1b4f3da09f4df0b4d40449965.tar.gz
vaadin-framework-535f259607fa3ee1b4f3da09f4df0b4d40449965.zip
Rename GridDragger to GridRowDragger (#10333)
The old name GridDragger gave an impression that you're dragging the whole grid instead of rows.
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/grid/GridRowDraggerOneGridTest.java (renamed from server/src/test/java/com/vaadin/tests/server/component/grid/GridDraggerOneGridTest.java)12
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/grid/GridRowDraggerTwoGridsTest.java (renamed from server/src/test/java/com/vaadin/tests/server/component/grid/GridDraggerTwoGridsTest.java)12
2 files changed, 12 insertions, 12 deletions
diff --git a/server/src/test/java/com/vaadin/tests/server/component/grid/GridDraggerOneGridTest.java b/server/src/test/java/com/vaadin/tests/server/component/grid/GridRowDraggerOneGridTest.java
index 24e72566f4..9888f42807 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/grid/GridDraggerOneGridTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/grid/GridRowDraggerOneGridTest.java
@@ -15,15 +15,15 @@ import com.vaadin.data.provider.ListDataProvider;
import com.vaadin.shared.ui.grid.DropLocation;
import com.vaadin.ui.Grid;
import com.vaadin.ui.components.grid.DropIndexCalculator;
-import com.vaadin.ui.components.grid.GridDragger;
+import com.vaadin.ui.components.grid.GridRowDragger;
import com.vaadin.ui.components.grid.GridDropEvent;
import com.vaadin.ui.components.grid.SourceDataProviderUpdater;
-public class GridDraggerOneGridTest {
+public class GridRowDraggerOneGridTest {
- public class TestGridDragger extends GridDragger<String> {
+ public class TestGridRowDragger extends GridRowDragger<String> {
- public TestGridDragger(Grid<String> grid) {
+ public TestGridRowDragger(Grid<String> grid) {
super(grid);
}
@@ -39,14 +39,14 @@ public class GridDraggerOneGridTest {
}
private Grid<String> source;
- private TestGridDragger dragger;
+ private TestGridRowDragger dragger;
private List<String> draggedItems;
@Before
public void setupListCase() {
source = new Grid<>();
source.addColumn(s -> s).setId("1");
- dragger = new TestGridDragger(source);
+ dragger = new TestGridRowDragger(source);
}
private void drop(String dropIndex, DropLocation dropLocation,
diff --git a/server/src/test/java/com/vaadin/tests/server/component/grid/GridDraggerTwoGridsTest.java b/server/src/test/java/com/vaadin/tests/server/component/grid/GridRowDraggerTwoGridsTest.java
index c73641097d..127365be36 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/grid/GridDraggerTwoGridsTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/grid/GridRowDraggerTwoGridsTest.java
@@ -15,15 +15,15 @@ import com.vaadin.data.provider.ListDataProvider;
import com.vaadin.shared.ui.grid.DropLocation;
import com.vaadin.ui.Grid;
import com.vaadin.ui.components.grid.DropIndexCalculator;
-import com.vaadin.ui.components.grid.GridDragger;
+import com.vaadin.ui.components.grid.GridRowDragger;
import com.vaadin.ui.components.grid.GridDropEvent;
import com.vaadin.ui.components.grid.SourceDataProviderUpdater;
-public class GridDraggerTwoGridsTest {
+public class GridRowDraggerTwoGridsTest {
- public class TestGridDragger extends GridDragger<String> {
+ public class TestGridRowDragger extends GridRowDragger<String> {
- public TestGridDragger(Grid<String> source, Grid<String> target) {
+ public TestGridRowDragger(Grid<String> source, Grid<String> target) {
super(source, target);
}
@@ -40,7 +40,7 @@ public class GridDraggerTwoGridsTest {
private Grid<String> source;
private Grid<String> target;
- private TestGridDragger dragger;
+ private TestGridRowDragger dragger;
private List<String> draggedItems;
@Before
@@ -48,7 +48,7 @@ public class GridDraggerTwoGridsTest {
source = new Grid<>();
target = new Grid<>();
target.addColumn(s -> s).setId("1");
- dragger = new TestGridDragger(source, target);
+ dragger = new TestGridRowDragger(source, target);
target.setItems(); // setup to use list data provider
}