summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java')
-rw-r--r--uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java b/uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java
index 8834a05069..af19f8849f 100644
--- a/uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java
+++ b/uitest/src/com/vaadin/tests/push/PushWithPreserveOnRefresh.java
@@ -5,7 +5,6 @@ import com.vaadin.annotations.Push;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.Log;
-import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
@@ -24,16 +23,13 @@ public class PushWithPreserveOnRefresh extends AbstractTestUI {
addComponent(new Label("UI id: " + getUIId()));
addComponent(log);
- Button b = new Button("click me");
- b.addClickListener(new ClickListener() {
+ addButton("click me", new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
log.log("Button has been clicked " + (++times) + " times");
}
});
-
- addComponent(b);
}
@Override