summaryrefslogtreecommitdiffstats
path: root/uitest/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 10:42:27 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 11:39:36 +0300
commit0a64a44e5fc9e7f79d5540aefd39262d50424477 (patch)
tree421220b2d7eafedcfdc1a1677a52819369b820ca /uitest/src
parentb0b1a13247bf931eb7f33ff6d0a88fc1833144e9 (diff)
downloadvaadin-framework-0a64a44e5fc9e7f79d5540aefd39262d50424477.tar.gz
vaadin-framework-0a64a44e5fc9e7f79d5540aefd39262d50424477.zip
Only support one Application per session (#9402)
Diffstat (limited to 'uitest/src')
-rw-r--r--uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java b/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
index 1f5f0dc691..f2fe90f4b1 100644
--- a/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
+++ b/uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.application;
-import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
@@ -15,9 +14,9 @@ public class ApplicationCloseTest extends TestBase {
protected void setup() {
Label applications = new Label("Applications in session: <br/>",
ContentMode.XHTML);
- for (Application a : getContext().getApplications()) {
- applications.setValue(applications.getValue() + "App: " + a
- + "<br/>");
+ if (getContext().getApplication() != null) {
+ applications.setValue(applications.getValue() + "App: "
+ + getContext().getApplication() + "<br/>");
}
applications.setValue(applications.getValue() + "<br/><br/>");