summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-24 09:46:48 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-24 09:46:48 +0300
commit090855bd8c21415ed24e6c068b71156905d6845d (patch)
treedde883629e03302988ba591306278c3451fc963f /tests
parentbc0fa73ce99b62265774c7e962e13cc7450acc28 (diff)
downloadvaadin-framework-090855bd8c21415ed24e6c068b71156905d6845d.tar.gz
vaadin-framework-090855bd8c21415ed24e6c068b71156905d6845d.zip
Make testing portlet display its UI
Diffstat (limited to 'tests')
-rw-r--r--tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java4
1 files changed, 2 insertions, 2 deletions
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");