aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-07-01 10:54:18 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-07-01 10:54:18 +0000
commit794e9cbc4648cfa8ec89a49c41e7f6ac89efc05e (patch)
tree2972c44f9ee269edbfd1699b49683475fa1254d3
parent2b52bdcb0aebba7cb93862d95d3ada3a456877b8 (diff)
downloadvaadin-framework-794e9cbc4648cfa8ec89a49c41e7f6ac89efc05e.tar.gz
vaadin-framework-794e9cbc4648cfa8ec89a49c41e7f6ac89efc05e.zip
cleanup
svn changeset:14001/svn branch:6.4
-rw-r--r--tests/src/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/src/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java b/tests/src/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java
index 03fc64f960..818e63de92 100644
--- a/tests/src/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java
+++ b/tests/src/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.components.combobox;
-import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.IndexedContainer;
@@ -12,6 +11,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Table;
import com.vaadin.ui.Button.ClickEvent;
+@SuppressWarnings("serial")
public class ComboBoxDataSourceChange extends TestBase {
private ComboBox cb2;
@@ -21,13 +21,13 @@ public class ComboBoxDataSourceChange extends TestBase {
final IndexedContainer ds1 = new IndexedContainer();
// ds1.addContainerProperty("caption", String.class, "");
for (int i = 0; i < 32; i++) {
- Item addItem = ds1.addItem("ds1-" + i);
+ ds1.addItem("ds1-" + i);
}
final IndexedContainer ds2 = new IndexedContainer();
// ds2.addContainerProperty("caption", String.class, "");
for (int i = 0; i < 32; i++) {
- Item addItem = ds2.addItem("ds2-" + i);
+ ds2.addItem("ds2-" + i);
}
HorizontalLayout hl = new HorizontalLayout();
@@ -88,12 +88,6 @@ public class ComboBoxDataSourceChange extends TestBase {
});
}
- private void populate(ComboBox cb) {
- for (int i = 1; i < 10; i++) {
- cb.addItem("Item " + i);
- }
- }
-
@Override
protected String getDescription() {
return "A test for combobox and its container changes.";