summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-11-29 19:10:19 +0200
committerVaadin Code Review <review@vaadin.com>2013-12-02 09:25:14 +0000
commit36fce654841a5bf82a6be765930db07892e374fb (patch)
tree3b8ff21be6f0f84be31c30fea9a1ced836bf6d3a /uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java
parentc171850a2c6fab38a81b2d0ab92d3433b2cf558c (diff)
downloadvaadin-framework-36fce654841a5bf82a6be765930db07892e374fb.tar.gz
vaadin-framework-36fce654841a5bf82a6be765930db07892e374fb.zip
Test for pushing for an extended period of time (24h)
Change-Id: I8e47ba926f41fdc103cfa72ba85ca2f9edbc57d0
Diffstat (limited to 'uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java')
-rw-r--r--uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java b/uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java
new file mode 100644
index 0000000000..d90394d3b5
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/push/ExtremelyLongPushTime.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2000-2013 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.push;
+
+import com.vaadin.server.VaadinRequest;
+
+public abstract class ExtremelyLongPushTime extends PushLargeData {
+
+ private static final int DURATION_MS = 48 * 60 * 60 * 1000; // 48 H
+ private static int INTERVAL_MS = 60 * 1000; // 1 minute
+ private static int PAYLOAD_SIZE = 100 * 1024; // 100 KB
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.tests.components.AbstractTestUI#setup(com.vaadin.server.
+ * VaadinRequest)
+ */
+ @Override
+ protected void setup(VaadinRequest request) {
+ super.setup(request);
+ duration.setConvertedValue(DURATION_MS);
+ interval.setConvertedValue(INTERVAL_MS);
+ dataSize.setConvertedValue(PAYLOAD_SIZE);
+ }
+
+ @Override
+ protected String getTestDescription() {
+ return "Test which pushes data every minute for 48 hours";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return null;
+ }
+
+}