]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make testing portlet display its UI
authorLeif Åstrand <leif@vaadin.com>
Tue, 24 Jul 2012 06:46:48 +0000 (09:46 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 24 Jul 2012 06:46:48 +0000 (09:46 +0300)
tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java

index db8d18938ea0a05bedc0c20ff772a11e4d1e078e..e77557537ce948a19257dadf4ac192de580527a5 100644 (file)
@@ -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");