diff options
author | Artur Signell <artur.signell@itmill.com> | 2011-05-26 10:30:01 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2011-05-26 10:30:01 +0000 |
commit | 449e77cbc5a4473f221709fed7ac769e2623f25d (patch) | |
tree | 58ca2ee1a91c1ec1b2f76b07acf3faa9c32338f7 /tests | |
parent | b18dd78739271c0fd2362838e8d1c152bd7cafe1 (diff) | |
download | vaadin-framework-449e77cbc5a4473f221709fed7ac769e2623f25d.tar.gz vaadin-framework-449e77cbc5a4473f221709fed7ac769e2623f25d.zip |
Basic tests for Window and Panel
svn changeset:19086/svn branch:6.6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/vaadin/tests/components/panel/PanelTest.java | 15 | ||||
-rw-r--r-- | tests/src/com/vaadin/tests/components/window/WindowTest.java | 19 |
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/panel/PanelTest.java b/tests/src/com/vaadin/tests/components/panel/PanelTest.java new file mode 100644 index 0000000000..29d93ce86c --- /dev/null +++ b/tests/src/com/vaadin/tests/components/panel/PanelTest.java @@ -0,0 +1,15 @@ +package com.vaadin.tests.components.panel; + +import com.vaadin.tests.components.AbstractComponentContainerTest; +import com.vaadin.ui.Panel; + +public class PanelTest<T extends Panel> extends + AbstractComponentContainerTest<T> { + + @SuppressWarnings("unchecked") + @Override + protected Class<T> getTestClass() { + return (Class<T>) Panel.class; + } + +} diff --git a/tests/src/com/vaadin/tests/components/window/WindowTest.java b/tests/src/com/vaadin/tests/components/window/WindowTest.java new file mode 100644 index 0000000000..ae3b0f22df --- /dev/null +++ b/tests/src/com/vaadin/tests/components/window/WindowTest.java @@ -0,0 +1,19 @@ +package com.vaadin.tests.components.window; + +import com.vaadin.tests.components.panel.PanelTest; +import com.vaadin.ui.Window; + +public class WindowTest extends PanelTest<Window> { + + @Override + protected Class<Window> getTestClass() { + return Window.class; + } + + @Override + protected void addTestComponent(Window c) { + getMainWindow().addWindow(c); + getTestComponents().add(c); + } + +} |