From af3ffd18359308dd8bb6f891bc5642a16b0e37a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 21 Nov 2011 12:20:57 +0200 Subject: [PATCH] Attach the window to a root before testing --- .../com/vaadin/tests/server/components/TestWindow.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/server-side/com/vaadin/tests/server/components/TestWindow.java b/tests/server-side/com/vaadin/tests/server/components/TestWindow.java index 05604aba61..01d6e61512 100644 --- a/tests/server-side/com/vaadin/tests/server/components/TestWindow.java +++ b/tests/server-side/com/vaadin/tests/server/components/TestWindow.java @@ -7,6 +7,7 @@ import junit.framework.TestCase; import org.easymock.EasyMock; +import com.vaadin.ui.Root; import com.vaadin.ui.Window; import com.vaadin.ui.Window.CloseEvent; import com.vaadin.ui.Window.CloseListener; @@ -20,6 +21,7 @@ public class TestWindow extends TestCase { @Override protected void setUp() throws Exception { window = new Window(); + new Root().addWindow(window); } public void testCloseListener() { -- 2.39.5