diff options
author | Zhe Sun <31067185+ZheSun88@users.noreply.github.com> | 2019-06-24 11:10:49 +0300 |
---|---|---|
committer | Tatu Lund <tatu@vaadin.com> | 2019-06-24 11:10:49 +0300 |
commit | bc576f48aa4fd51114cba4426e7ab95e633ac719 (patch) | |
tree | 48ee3ed5e55def65d5e7c890010acc9a1605d531 /uitest | |
parent | 0db7fd52e14ea4de1b3d5b9fdab356b3ba016f15 (diff) | |
download | vaadin-framework-bc576f48aa4fd51114cba4426e7ab95e633ac719.tar.gz vaadin-framework-bc576f48aa4fd51114cba4426e7ab95e633ac719.zip |
Limit previous solution for non-push mode UI (#11629)
* add test case
* Limit the workaround for non-push mode
Fixes #11616
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java | 18 | ||||
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java b/uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java new file mode 100644 index 0000000000..a16c0d97ee --- /dev/null +++ b/uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java @@ -0,0 +1,18 @@ +package com.vaadin.tests.components.upload; + +import com.vaadin.annotations.Push; + +@Push +public class InterruptUploadWithPush extends InterruptUpload { + + @Override + protected Integer getTicketNumber() { + return 11616; + } + + @Override + public String getDescription() { + return "Interrupting an upload with @Push shouldn't prevent uploading that same file immediately afterwards."; + } + +} diff --git a/uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java b/uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java new file mode 100644 index 0000000000..2924cc1e1f --- /dev/null +++ b/uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java @@ -0,0 +1,4 @@ +package com.vaadin.tests.components.upload; + +public class InterruptUploadWithPushTest extends InterruptUploadTest { +} |