diff options
author | Adam Wagner <wbadam@users.noreply.github.com> | 2018-02-08 11:20:32 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-02-08 11:20:32 +0200 |
commit | 1817a82ed8f3c8839c18d9ce6b68e5838940a22c (patch) | |
tree | 3a110ba043aa4bea415b4060c4eba4439703711b /server/src/test | |
parent | 299520fac11dac9b31d6fd762a3eb76ef827ec5b (diff) | |
download | vaadin-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')
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) { |