]> source.dussan.org Git - vaadin-framework.git/commitdiff
Set a dummy VaadinSession in AddRemoveSubWindow test to fix spurious failure
authorJohannes Dahlström <johannesd@vaadin.com>
Tue, 11 Sep 2012 08:55:40 +0000 (11:55 +0300)
committerJohannes Dahlström <johannesd@vaadin.com>
Tue, 11 Sep 2012 09:09:03 +0000 (12:09 +0300)
server/tests/src/com/vaadin/tests/server/component/window/AddRemoveSubWindow.java

index 9ee4ffe6e7e55e67c899182dfb6ab434375c5422..679c28858699eca8d96bb4957a39a8d244b7a385 100644 (file)
@@ -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");