summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2106.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2106.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2106.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2106.java b/uitest/src/com/vaadin/tests/tickets/Ticket2106.java
new file mode 100644
index 0000000000..9d6e198f03
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2106.java
@@ -0,0 +1,39 @@
+package com.vaadin.tests.tickets;
+
+import java.util.Date;
+
+import com.vaadin.Application;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.UI.LegacyWindow;
+
+public class Ticket2106 extends Application.LegacyApplication {
+
+ private static CustomizedSystemMessages msgs = new Application.CustomizedSystemMessages();
+ static {
+ // We will forward the user to www.vaadin.com when the session expires
+ msgs.setSessionExpiredURL("http://www.vaadin.com");
+ msgs.setSessionExpiredMessage(null);
+ msgs.setSessionExpiredCaption(null);
+ }
+
+ public static Application.SystemMessages getSystemMessages() {
+ return msgs;
+ }
+
+ @Override
+ public void init() {
+ setMainWindow(new LegacyWindow("#2106"));
+ getMainWindow().addComponent(
+ new Button("Do nothing", new Button.ClickListener() {
+ @Override
+ public void buttonClick(ClickEvent event) {
+ getMainWindow().addComponent(
+ new Label("Last time did nothing: "
+ + new Date()));
+ }
+ }));
+ }
+
+}