diff options
author | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-07-10 10:02:50 +0000 |
---|---|---|
committer | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-07-10 10:02:50 +0000 |
commit | 49583093a1ffca454a4af6e6b9ff271a478e07ab (patch) | |
tree | 6f73d288ec8308f94b8bcb040111142187dec08e /tests | |
parent | ba2d51b6bd751eb9574bf245b56293f6dcdc2c06 (diff) | |
download | vaadin-framework-49583093a1ffca454a4af6e6b9ff271a478e07ab.tar.gz vaadin-framework-49583093a1ffca454a4af6e6b9ff271a478e07ab.zip |
Oops, remove redundant code causing a compile error
svn changeset:24005/svn branch:6.8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testbench/com/vaadin/tests/components/table/SelectableEditable.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/table/SelectableEditable.java b/tests/testbench/com/vaadin/tests/components/table/SelectableEditable.java index 22bbdcf87d..71be6c5096 100644 --- a/tests/testbench/com/vaadin/tests/components/table/SelectableEditable.java +++ b/tests/testbench/com/vaadin/tests/components/table/SelectableEditable.java @@ -1,9 +1,5 @@ package com.vaadin.tests.components.table;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Random;
-
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Table;
@@ -39,42 +35,3 @@ public class SelectableEditable extends TestBase { return 9064;
}
}
-
-class PersonGenerator {
-
- private static final String[] fNames = { "Peter", "Alice", "Joshua",
- "Mike", "Olivia", "Nina", "Alex", "Rita", "Dan", "Umberto",
- "Henrik", "Rene", "Lisa", "Marge" };
- private static final String[] lNames = { "Smith", "Gordon", "Simpson",
- "Brown", "Clavel", "Simons", "Verne", "Scott", "Allison", "Gates",
- "Rowling", "Barks", "Ross", "Schneider", "Tate" };
-
- private PersonGenerator() {
- }
-
- /**
- * Generates a dummy list of {@link Person}s with randomly selected
- * elements.
- *
- * @param count
- * the number of {@link Person}s to generate
- * @return a list of {@link Person}s.
- */
- public static List<Person> generateDummyPersons(int count) {
- final List<Person> persons = new ArrayList<Person>();
- final Random randomGenerator = new Random();
- for (int i = 0; i < count; i++) {
- final Person person = generatePerson(randomGenerator);
- persons.add(person);
- }
- return persons;
- }
-
- private static Person generatePerson(Random randomGenerator) {
- final String firstName = fNames[randomGenerator.nextInt(fNames.length)];
- final String lastName = lNames[randomGenerator.nextInt(lNames.length)];
- final boolean alive = randomGenerator.nextBoolean();
- return new Person(firstName, lastName, alive);
- }
-
-}
|