diff options
author | Henrik Paul <henrik@vaadin.com> | 2014-09-29 10:45:23 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-10-02 14:16:37 +0000 |
commit | 0375cb57b53ffa45dbc1e6fbd94e3d15e23b9ec3 (patch) | |
tree | 1f8809b127bbfc2f62f6cbcbca8e1eb750ff284a /client/tests/src/com/vaadin | |
parent | ba6e9e43db694d4eb3d4bf58b6cf45e01e1c542c (diff) | |
download | vaadin-framework-0375cb57b53ffa45dbc1e6fbd94e3d15e23b9ec3.tar.gz vaadin-framework-0375cb57b53ffa45dbc1e6fbd94e3d15e23b9ec3.zip |
Renames "estimated size" to a more definite "size" (#13334)
Change-Id: I9f72cc85223df21e5fac0da29b493bcc89bd3b9c
Diffstat (limited to 'client/tests/src/com/vaadin')
-rw-r--r-- | client/tests/src/com/vaadin/client/ui/grid/ListDataSourceTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/tests/src/com/vaadin/client/ui/grid/ListDataSourceTest.java b/client/tests/src/com/vaadin/client/ui/grid/ListDataSourceTest.java index 55a2b56ee2..5970d9c609 100644 --- a/client/tests/src/com/vaadin/client/ui/grid/ListDataSourceTest.java +++ b/client/tests/src/com/vaadin/client/ui/grid/ListDataSourceTest.java @@ -34,7 +34,7 @@ public class ListDataSourceTest { ListDataSource<Integer> ds = new ListDataSource<Integer>(0, 1, 2, 3); - assertEquals(4, ds.getEstimatedSize()); + assertEquals(4, ds.size()); assertEquals(0, (int) ds.getRow(0)); assertEquals(1, (int) ds.getRow(1)); assertEquals(2, (int) ds.getRow(2)); @@ -42,7 +42,7 @@ public class ListDataSourceTest { ds = new ListDataSource<Integer>(Arrays.asList(0, 1, 2, 3)); - assertEquals(4, ds.getEstimatedSize()); + assertEquals(4, ds.size()); assertEquals(0, (int) ds.getRow(0)); assertEquals(1, (int) ds.getRow(1)); assertEquals(2, (int) ds.getRow(2)); @@ -65,7 +65,7 @@ public class ListDataSourceTest { ds.asList().add(4); - assertEquals(5, ds.getEstimatedSize()); + assertEquals(5, ds.size()); assertEquals(0, (int) ds.getRow(0)); assertEquals(1, (int) ds.getRow(1)); assertEquals(2, (int) ds.getRow(2)); @@ -89,7 +89,7 @@ public class ListDataSourceTest { ds.asList().addAll(Arrays.asList(4, 5, 6)); - assertEquals(7, ds.getEstimatedSize()); + assertEquals(7, ds.size()); assertEquals(0, (int) ds.getRow(0)); assertEquals(1, (int) ds.getRow(1)); assertEquals(2, (int) ds.getRow(2)); @@ -115,7 +115,7 @@ public class ListDataSourceTest { ds.asList().remove(2); - assertEquals(3, ds.getEstimatedSize()); + assertEquals(3, ds.size()); assertEquals(0, (int) ds.getRow(0)); assertEquals(1, (int) ds.getRow(1)); assertEquals(3, (int) ds.getRow(2)); @@ -137,7 +137,7 @@ public class ListDataSourceTest { ds.asList().removeAll(Arrays.asList(0, 2, 3)); - assertEquals(1, ds.getEstimatedSize()); + assertEquals(1, ds.size()); assertEquals(1, (int) ds.getRow(0)); } @@ -157,7 +157,7 @@ public class ListDataSourceTest { ds.asList().clear(); - assertEquals(0, ds.getEstimatedSize()); + assertEquals(0, ds.size()); } @Test(expected = IllegalStateException.class) |