]> source.dussan.org Git - vaadin-framework.git/commitdiff
Moved JUnit test to server-side source folder where it belongs
authorArtur Signell <artur@vaadin.com>
Fri, 27 Jan 2012 15:55:09 +0000 (17:55 +0200)
committerArtur Signell <artur@vaadin.com>
Fri, 27 Jan 2012 15:55:09 +0000 (17:55 +0200)
tests/server-side/com/vaadin/tests/server/component/datefield/ResolutionTest.java [new file with mode: 0644]
tests/testbench/com/vaadin/tests/components/datefield/ResolutionTest.java [deleted file]

diff --git a/tests/server-side/com/vaadin/tests/server/component/datefield/ResolutionTest.java b/tests/server-side/com/vaadin/tests/server/component/datefield/ResolutionTest.java
new file mode 100644 (file)
index 0000000..88dceca
--- /dev/null
@@ -0,0 +1,61 @@
+package com.vaadin.tests.server.component.datefield;\r
+\r
+import java.util.ArrayList;\r
+\r
+import junit.framework.TestCase;\r
+\r
+import com.vaadin.tests.util.TestUtil;\r
+import com.vaadin.ui.DateField.Resolution;\r
+\r
+public class ResolutionTest extends TestCase {\r
+\r
+    public void testResolutionHigherOrEqualToYear() {\r
+        Iterable<Resolution> higherOrEqual = Resolution\r
+                .getResolutionsHigherOrEqualTo(Resolution.YEAR);\r
+        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
+        expected.add(Resolution.YEAR);\r
+        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
+    }\r
+\r
+    public void testResolutionHigherOrEqualToDay() {\r
+        Iterable<Resolution> higherOrEqual = Resolution\r
+                .getResolutionsHigherOrEqualTo(Resolution.DAY);\r
+        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
+        expected.add(Resolution.DAY);\r
+        expected.add(Resolution.MONTH);\r
+        expected.add(Resolution.YEAR);\r
+        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
+\r
+    }\r
+\r
+    public void testResolutionLowerThanDay() {\r
+        Iterable<Resolution> higherOrEqual = Resolution\r
+                .getResolutionsLowerThan(Resolution.DAY);\r
+        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
+        expected.add(Resolution.HOUR);\r
+        expected.add(Resolution.MINUTE);\r
+        expected.add(Resolution.SECOND);\r
+        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
+\r
+    }\r
+\r
+    public void testResolutionLowerThanSecond() {\r
+        Iterable<Resolution> higherOrEqual = Resolution\r
+                .getResolutionsLowerThan(Resolution.SECOND);\r
+        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
+        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
+    }\r
+\r
+    public void testResolutionLowerThanYear() {\r
+        Iterable<Resolution> higherOrEqual = Resolution\r
+                .getResolutionsLowerThan(Resolution.YEAR);\r
+        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
+        expected.add(Resolution.MONTH);\r
+        expected.add(Resolution.DAY);\r
+        expected.add(Resolution.HOUR);\r
+        expected.add(Resolution.MINUTE);\r
+        expected.add(Resolution.SECOND);\r
+        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
+\r
+    }\r
+}\r
diff --git a/tests/testbench/com/vaadin/tests/components/datefield/ResolutionTest.java b/tests/testbench/com/vaadin/tests/components/datefield/ResolutionTest.java
deleted file mode 100644 (file)
index e54e1cd..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.vaadin.tests.components.datefield;\r
-\r
-import java.util.ArrayList;\r
-\r
-import junit.framework.TestCase;\r
-\r
-import com.vaadin.tests.util.TestUtil;\r
-import com.vaadin.ui.DateField.Resolution;\r
-\r
-public class ResolutionTest extends TestCase {\r
-\r
-    public void testResolutionHigherOrEqualToYear() {\r
-        Iterable<Resolution> higherOrEqual = Resolution\r
-                .getResolutionsHigherOrEqualTo(Resolution.YEAR);\r
-        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
-        expected.add(Resolution.YEAR);\r
-        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
-    }\r
-\r
-    public void testResolutionHigherOrEqualToDay() {\r
-        Iterable<Resolution> higherOrEqual = Resolution\r
-                .getResolutionsHigherOrEqualTo(Resolution.DAY);\r
-        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
-        expected.add(Resolution.DAY);\r
-        expected.add(Resolution.MONTH);\r
-        expected.add(Resolution.YEAR);\r
-        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
-\r
-    }\r
-\r
-    public void testResolutionLowerThanDay() {\r
-        Iterable<Resolution> higherOrEqual = Resolution\r
-                .getResolutionsLowerThan(Resolution.DAY);\r
-        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
-        expected.add(Resolution.HOUR);\r
-        expected.add(Resolution.MINUTE);\r
-        expected.add(Resolution.SECOND);\r
-        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
-\r
-    }\r
-\r
-    public void testResolutionLowerThanSecond() {\r
-        Iterable<Resolution> higherOrEqual = Resolution\r
-                .getResolutionsLowerThan(Resolution.SECOND);\r
-        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
-        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
-    }\r
-\r
-    public void testResolutionLowerThanYear() {\r
-        Iterable<Resolution> higherOrEqual = Resolution\r
-                .getResolutionsLowerThan(Resolution.YEAR);\r
-        ArrayList<Resolution> expected = new ArrayList<Resolution>();\r
-        expected.add(Resolution.MONTH);\r
-        expected.add(Resolution.DAY);\r
-        expected.add(Resolution.HOUR);\r
-        expected.add(Resolution.MINUTE);\r
-        expected.add(Resolution.SECOND);\r
-        TestUtil.assertIterableEquals(expected, higherOrEqual);\r
-\r
-    }\r
-}\r