From: Leif Åstrand Date: Tue, 24 Jul 2012 06:46:48 +0000 (+0300) Subject: Make testing portlet display its UI X-Git-Tag: 7.0.0.beta1~236^2~44 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=090855bd8c21415ed24e6c068b71156905d6845d;p=vaadin-framework.git Make testing portlet display its UI --- diff --git a/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java b/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java index db8d18938e..e77557537c 100644 --- a/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java +++ b/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java @@ -23,6 +23,7 @@ import com.vaadin.terminal.WrappedRequest; import com.vaadin.terminal.gwt.client.ui.label.ContentMode; import com.vaadin.terminal.gwt.server.PortletApplicationContext2; import com.vaadin.terminal.gwt.server.PortletApplicationContext2.PortletListener; +import com.vaadin.ui.ComponentContainer; import com.vaadin.ui.Embedded; import com.vaadin.ui.Label; import com.vaadin.ui.Link; @@ -31,7 +32,6 @@ import com.vaadin.ui.Root; import com.vaadin.ui.TextField; import com.vaadin.ui.Upload; import com.vaadin.ui.Upload.Receiver; -import com.vaadin.ui.VerticalLayout; /** * Adapted from old PortletDemo to support integration testing. @@ -46,7 +46,7 @@ public class JSR286PortletRoot extends Root { @Override protected void init(WrappedRequest request) { - VerticalLayout main = new VerticalLayout(); + ComponentContainer main = getContent(); tf.setDebugId("tf"); userInfo.setDebugId("userInfo"); portletEdit.setDebugId("portletEdit");