aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestUI.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
index 5c7076c07e..fe69779b4b 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
@@ -136,6 +136,23 @@ public abstract class AbstractTestUI extends UI {
PushConfigurationState.FALLBACK_TRANSPORT_PARAM, "none");
}
+ /**
+ * This method is inherited from the super class, but it should generally
+ * not be used. If you want to just add components to your test, use e.g.
+ * {@link #addComponent(Component)} instead to add the component to the
+ * layout used by this UI. If you don't want to use the top-level layout
+ * used by this class, you instead inherit directly from UI.
+ *
+ * @deprecated Use {@link #addComponent(Component)} or inherit from UI
+ * instead.
+ */
+ @Override
+ @Deprecated
+ public void setContent(Component content) {
+ // Overridden just to deprecate
+ super.setContent(content);
+ }
+
private VerticalLayout layout;
protected VerticalLayout getLayout() {