diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-02-23 08:34:42 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-02-23 08:34:42 +0000 |
commit | 712088b3fb5f0ded77ce6dc6eff6e7948d38d1f2 (patch) | |
tree | 45c72936a9083cae5cc1b533a9986e171eeb69dc | |
parent | 40cddca975b102d8195704f63c4a841266f8179b (diff) | |
download | vaadin-framework-712088b3fb5f0ded77ce6dc6eff6e7948d38d1f2.tar.gz vaadin-framework-712088b3fb5f0ded77ce6dc6eff6e7948d38d1f2.zip |
Added ticket info
svn changeset:11479/svn branch:6.3
-rw-r--r-- | tests/src/com/vaadin/tests/components/tree/TreeFiltering.java | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java b/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java index 99375bde8f..495e6cfb96 100644 --- a/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java +++ b/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java @@ -1,23 +1,20 @@ package com.vaadin.tests.components.tree;
-import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.HierarchicalContainer;
+import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Tree;
-import com.vaadin.ui.Window;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
-public class TreeFiltering extends Application {
+public class TreeFiltering extends TestBase {
@Override
- public void init() {
- final Window mainWindow = new Window("Vaadintest Application");
+ public void setup() {
final Tree ccTree = new Tree();
- mainWindow.addComponent(ccTree);
-
+ addComponent(ccTree);
final HierarchicalContainer cont = new HierarchicalContainer();
cont.addContainerProperty("caption", String.class, "");
@@ -48,7 +45,7 @@ public class TreeFiltering extends Application { }
});
- mainWindow.addComponent(b);
+ addComponent(b);
final Button b2 = new Button("Add filter 'Num'", new ClickListener() {
public void buttonClick(final ClickEvent event) {
cont.addContainerFilter("caption", "Num", true, false);
@@ -56,7 +53,7 @@ public class TreeFiltering extends Application { }
});
- mainWindow.addComponent(b2);
+ addComponent(b2);
final Button num = new Button("Add filter '0'", new ClickListener() {
public void buttonClick(final ClickEvent event) {
cont.addContainerFilter("caption", "0", true, false);
@@ -64,16 +61,24 @@ public class TreeFiltering extends Application { }
});
- mainWindow.addComponent(num);
+ addComponent(num);
final Button r = new Button("Remove filter", new ClickListener() {
public void buttonClick(final ClickEvent event) {
cont.removeAllContainerFilters();
}
});
- mainWindow.addComponent(r);
+ addComponent(r);
+ }
+
+ @Override
+ protected String getDescription() {
+ return "Filtering in a tree should work as expected. Roots and their children which match the filter should be shown. Other nodes should be hidden";
+ }
- setMainWindow(mainWindow);
+ @Override
+ protected Integer getTicketNumber() {
+ return 4192;
}
}
\ No newline at end of file |