summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-08-20 05:54:37 +0000
committerArtur Signell <artur.signell@itmill.com>2010-08-20 05:54:37 +0000
commit2c711415e42ee691657b2d35f5892d59ba47c156 (patch)
tree4457ae706156b06a8cae38fe48de61a688e48081 /tests
parentb276f37f225e6b16d219b7c3906d6a326a6f54e1 (diff)
downloadvaadin-framework-2c711415e42ee691657b2d35f5892d59ba47c156.tar.gz
vaadin-framework-2c711415e42ee691657b2d35f5892d59ba47c156.zip
Moved replaceComponent to TestBase
svn changeset:14551/svn branch:6.4
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/vaadin/tests/components/TestBase.java5
-rw-r--r--tests/src/com/vaadin/tests/layouts/CaptionsInLayouts.java4
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/src/com/vaadin/tests/components/TestBase.java b/tests/src/com/vaadin/tests/components/TestBase.java
index b3012b1163..8e05910e54 100644
--- a/tests/src/com/vaadin/tests/components/TestBase.java
+++ b/tests/src/com/vaadin/tests/components/TestBase.java
@@ -41,4 +41,9 @@ public abstract class TestBase extends AbstractTestCase {
getLayout().addComponent(c);
}
+ protected void replaceComponent(Component oldComponent,
+ Component newComponent) {
+ getLayout().replaceComponent(oldComponent, newComponent);
+ }
+
}
diff --git a/tests/src/com/vaadin/tests/layouts/CaptionsInLayouts.java b/tests/src/com/vaadin/tests/layouts/CaptionsInLayouts.java
index f66562a25e..788776777b 100644
--- a/tests/src/com/vaadin/tests/layouts/CaptionsInLayouts.java
+++ b/tests/src/com/vaadin/tests/layouts/CaptionsInLayouts.java
@@ -165,10 +165,6 @@ public class CaptionsInLayouts extends TestBase {
}
- private void replaceComponent(Component oldC, Component newC) {
- getLayout().replaceComponent(oldC, newC);
- }
-
private Layout getLayout(String caption, Class layoutClass, String width) {
Layout l;
if (layoutClass == VerticalLayout.class) {