]> source.dussan.org Git - vaadin-framework.git/commitdiff
Basic tests for Window and Panel
authorArtur Signell <artur.signell@itmill.com>
Thu, 26 May 2011 10:30:01 +0000 (10:30 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 26 May 2011 10:30:01 +0000 (10:30 +0000)
svn changeset:19086/svn branch:6.6

tests/src/com/vaadin/tests/components/panel/PanelTest.java [new file with mode: 0644]
tests/src/com/vaadin/tests/components/window/WindowTest.java [new file with mode: 0644]

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 (file)
index 0000000..29d93ce
--- /dev/null
@@ -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 (file)
index 0000000..ae3b0f2
--- /dev/null
@@ -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);
+    }
+
+}