diff options
author | Henrik Paul <henrik@vaadin.com> | 2015-03-30 15:28:41 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-03-31 11:00:53 +0000 |
commit | 2080f86e03552c56d52f488e4dcd72282cd64f62 (patch) | |
tree | 088f49e449a52b69450dca5ecd3c5f36f000d8ea /uitest/src/com/vaadin/tests/util | |
parent | 3eb8110f13d51a859d40da9dfcb9ae2edb890f8c (diff) | |
download | vaadin-framework-2080f86e03552c56d52f488e4dcd72282cd64f62.tar.gz vaadin-framework-2080f86e03552c56d52f488e4dcd72282cd64f62.zip |
Server Grid.scrollToRow takes details into account (#17270)
Change-Id: I7b6d67aeb4d625a53e6fe370b729016a84e33214
Diffstat (limited to 'uitest/src/com/vaadin/tests/util')
-rw-r--r-- | uitest/src/com/vaadin/tests/util/PersonContainer.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/util/PersonContainer.java b/uitest/src/com/vaadin/tests/util/PersonContainer.java index 611e5d3adb..709086be29 100644 --- a/uitest/src/com/vaadin/tests/util/PersonContainer.java +++ b/uitest/src/com/vaadin/tests/util/PersonContainer.java @@ -32,10 +32,14 @@ public class PersonContainer extends BeanItemContainer<Person> implements } public static PersonContainer createWithTestData() { + return createWithTestData(100); + } + + public static PersonContainer createWithTestData(int size) { PersonContainer c = null; Random r = new Random(0); c = new PersonContainer(); - for (int i = 0; i < 100; i++) { + for (int i = 0; i < size; i++) { Person p = new Person(); p.setFirstName(TestDataGenerator.getFirstName(r)); p.setLastName(TestDataGenerator.getLastName(r)); |