summaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2018-02-08 11:20:32 +0200
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-02-08 11:20:32 +0200
commit1817a82ed8f3c8839c18d9ce6b68e5838940a22c (patch)
tree3a110ba043aa4bea415b4060c4eba4439703711b /server/src/test
parent299520fac11dac9b31d6fd762a3eb76ef827ec5b (diff)
downloadvaadin-framework-1817a82ed8f3c8839c18d9ce6b68e5838940a22c.tar.gz
vaadin-framework-1817a82ed8f3c8839c18d9ce6b68e5838940a22c.zip
Add recursive expand and collapse method to TreeGrid and Tree (#10283)
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithDataTest.java4
-rw-r--r--server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithNumerousDataTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithDataTest.java b/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithDataTest.java
index 80d6a70cfd..81ee908a52 100644
--- a/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithDataTest.java
+++ b/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithDataTest.java
@@ -209,11 +209,11 @@ public class HierarchyMapperWithDataTest {
}
private void expand(Node node) {
- insertRows(mapper.doExpand(node, mapper.getIndexOf(node)));
+ insertRows(mapper.expand(node, mapper.getIndexOf(node).orElse(null)));
}
private void collapse(Node node) {
- removeRows(mapper.doCollapse(node, mapper.getIndexOf(node)));
+ removeRows(mapper.collapse(node, mapper.getIndexOf(node).orElse(null)));
}
private void verifyFetchIsCorrect(List<Node> expectedResult, Range range) {
diff --git a/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithNumerousDataTest.java b/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithNumerousDataTest.java
index 6c0091f8bf..58208a6cc3 100644
--- a/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithNumerousDataTest.java
+++ b/server/src/test/java/com/vaadin/data/provider/hierarchical/HierarchyMapperWithNumerousDataTest.java
@@ -63,7 +63,7 @@ public class HierarchyMapperWithNumerousDataTest {
}
private void expand(Node node) {
- insertRows(mapper.doExpand(node, mapper.getIndexOf(node)));
+ insertRows(mapper.expand(node, mapper.getIndexOf(node).orElse(null)));
}
public void insertRows(Range range) {