diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-11 11:55:40 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-11 12:09:03 +0300 |
commit | 3877b51ddfe651907e02b2ee9bec8d854be55225 (patch) | |
tree | bd74c4d4ea9a9fc3e94e5671cd4918547454ab73 | |
parent | 03b983ee8f0373fb4240c6189d8dbafae0b6924c (diff) | |
download | vaadin-framework-3877b51ddfe651907e02b2ee9bec8d854be55225.tar.gz vaadin-framework-3877b51ddfe651907e02b2ee9bec8d854be55225.zip |
Set a dummy VaadinSession in AddRemoveSubWindow test to fix spurious failure
-rw-r--r-- | server/tests/src/com/vaadin/tests/server/component/window/AddRemoveSubWindow.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/window/AddRemoveSubWindow.java b/server/tests/src/com/vaadin/tests/server/component/window/AddRemoveSubWindow.java index 9ee4ffe6e7..679c288586 100644 --- a/server/tests/src/com/vaadin/tests/server/component/window/AddRemoveSubWindow.java +++ b/server/tests/src/com/vaadin/tests/server/component/window/AddRemoveSubWindow.java @@ -7,6 +7,7 @@ import static org.junit.Assert.assertTrue; import org.junit.Test; import com.vaadin.LegacyApplication; +import com.vaadin.server.VaadinSession; import com.vaadin.ui.UI; import com.vaadin.ui.UI.LegacyWindow; import com.vaadin.ui.Window; @@ -24,6 +25,7 @@ public class AddRemoveSubWindow { @Test public void addSubWindow() { + VaadinSession.setCurrent(new VaadinSession()); TestApp app = new TestApp(); app.init(); Window subWindow = new Window("Sub window"); |