diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2016-12-20 14:36:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 14:36:53 +0200 |
commit | 1407b8ddaea9a8aace0973864ad9ce093e20a566 (patch) | |
tree | 59c512fc7a5cf3c05b65da5cf6bd80cf44fff293 /uitest | |
parent | 912c86800baa0b4260c472fd06dc9360fb5c6666 (diff) | |
download | vaadin-framework-1407b8ddaea9a8aace0973864ad9ce093e20a566.tar.gz vaadin-framework-1407b8ddaea9a8aace0973864ad9ce093e20a566.zip |
Remove Google App Engine support, tests and documentation (#8034)
* Remove Google App Engine support and tests
Fixes #8033
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/ivy.xml | 3 | ||||
-rw-r--r-- | uitest/pom.xml | 6 | ||||
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/appengine/GAESyncTest.java | 156 |
3 files changed, 0 insertions, 165 deletions
diff --git a/uitest/ivy.xml b/uitest/ivy.xml index fa0005a552..04dc6a1c6a 100644 --- a/uitest/ivy.xml +++ b/uitest/ivy.xml @@ -24,9 +24,6 @@ rev="1.0.0.GA" conf="build -> default,sources" /> <dependency org="org.hibernate" name="hibernate-validator" rev="4.2.0.Final" conf="build -> default" /> - <!-- Google App Engine --> - <dependency org="com.google.appengine" name="appengine-api-1.0-sdk" - rev="1.7.7" conf="build-provided -> default" /> <!-- LIBRARY DEPENDENCIES (compile time) --> <!-- Project modules --> diff --git a/uitest/pom.xml b/uitest/pom.xml index 4b183e578b..8f9fb53758 100644 --- a/uitest/pom.xml +++ b/uitest/pom.xml @@ -42,12 +42,6 @@ <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> </dependency> - <!-- Google App Engine --> - <dependency> - <groupId>com.google.appengine</groupId> - <artifactId>appengine-api-1.0-sdk</artifactId> - <scope>provided</scope> - </dependency> <!-- jetty-servlets needed by ProxyTest, but not by jetty-runner --> <!-- Jetty before vaadin-* on the classpath to make Eclipse use the diff --git a/uitest/src/main/java/com/vaadin/tests/appengine/GAESyncTest.java b/uitest/src/main/java/com/vaadin/tests/appengine/GAESyncTest.java deleted file mode 100644 index 89b92192de..0000000000 --- a/uitest/src/main/java/com/vaadin/tests/appengine/GAESyncTest.java +++ /dev/null @@ -1,156 +0,0 @@ -package com.vaadin.tests.appengine; - -import com.google.apphosting.api.DeadlineExceededException; -import com.vaadin.server.ClassResource; -import com.vaadin.server.DownloadStream; -import com.vaadin.server.LegacyApplication; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Embedded; -import com.vaadin.ui.GridLayout; -import com.vaadin.ui.Label; -import com.vaadin.ui.LegacyWindow; -import com.vaadin.ui.Notification; -import com.vaadin.v7.data.Property; -import com.vaadin.v7.data.Property.ValueChangeEvent; -import com.vaadin.v7.ui.TextField; - -public class GAESyncTest extends LegacyApplication { - - /** - * - */ - private static final long serialVersionUID = -3724319151122707926l; - - @Override - public void init() { - setMainWindow(new IntrWindow(this)); - - } - - @Override - public void error(com.vaadin.server.ErrorEvent event) { - Throwable t = event.getThrowable(); - // Was this caused by a GAE timeout? - while (t != null) { - if (t instanceof DeadlineExceededException) { - getMainWindow().showNotification("Bugger!", "Deadline Exceeded", - Notification.TYPE_ERROR_MESSAGE); - return; - } - t = t.getCause(); - } - - super.error(event); - - } - - private class IntrWindow extends LegacyWindow { - private int n = 0; - private static final long serialVersionUID = -6521351715072191625l; - TextField tf; - Label l; - LegacyApplication app; - GridLayout gl; - - private IntrWindow(LegacyApplication app) { - - this.app = app; - tf = new TextField("Echo thingie"); - tf.setImmediate(true); - tf.addListener(new Property.ValueChangeListener() { - @Override - public void valueChange(ValueChangeEvent event) { - IntrWindow.this.showNotification( - (String) event.getProperty().getValue()); - - } - - }); - addComponent(tf); - - l = new Label("" + n); - addComponent(l); - - { - Button b = new Button("Slow", new Button.ClickListener() { - @Override - public void buttonClick(ClickEvent event) { - try { - Thread.sleep(15000); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - }); - addComponent(b); - } - - { - Button b = new Button("Add", new Button.ClickListener() { - - @Override - public void buttonClick(ClickEvent event) { - if (getUI() == getMainWindow()) { - getUI().getPage() - .showNotification(new Notification("main")); - try { - Thread.sleep((5000)); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - addImage(); - } - - }); - addComponent(b); - } - - gl = new GridLayout(30, 50); - addComponent(gl); - - } - - private void addImage() { - ClassResource res = new ClassResource("img1.png") { - - private static final long serialVersionUID = 1L; - - @Override - public DownloadStream getStream() { - try { - Thread.sleep((long) (Math.random() * 5000)); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return super.getStream(); - } - - }; - res.setCacheTime(0); - Embedded emb = new Embedded("" + n, res); - emb.setWidth("30px"); - emb.setHeight("5px"); - gl.addComponent(emb); - l.setValue("" + n++); - } - - } - - @Override - public LegacyWindow getWindow(String name) { - LegacyWindow w = super.getWindow(name); - if (w == null) { - w = new IntrWindow(this); - addWindow(w); - } - return w; - - } - -} |