From 0a64a44e5fc9e7f79d5540aefd39262d50424477 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Wed, 5 Sep 2012 10:42:27 +0300 Subject: Only support one Application per session (#9402) --- uitest/src/com/vaadin/tests/application/ApplicationCloseTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'uitest') 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:
", ContentMode.XHTML); - for (Application a : getContext().getApplications()) { - applications.setValue(applications.getValue() + "App: " + a - + "
"); + if (getContext().getApplication() != null) { + applications.setValue(applications.getValue() + "App: " + + getContext().getApplication() + "
"); } applications.setValue(applications.getValue() + "

"); -- cgit v1.2.3