Move the validation test cases that depend on reflection out of a client-scoped package.
This will remove a spurious compile error.
Fix MinValidatorForStringTest.
Patch by: bobv
Review by: rjrjr, nchalko

Review at http://gwt-code-reviews.appspot.com/1276801


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9520 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/validation/ConstraintsJreSuite.java b/user/test/com/google/gwt/validation/ConstraintsJreSuite.java
index 218e53f..4578f5a 100644
--- a/user/test/com/google/gwt/validation/ConstraintsJreSuite.java
+++ b/user/test/com/google/gwt/validation/ConstraintsJreSuite.java
@@ -15,35 +15,35 @@
  */
 package com.google.gwt.validation;
 
-import com.google.gwt.validation.client.constraints.AssertFalseValidatorTest;
-import com.google.gwt.validation.client.constraints.AssertTrueValidatorTest;
-import com.google.gwt.validation.client.constraints.DecimalMaxValidatorForNumberTest;
-import com.google.gwt.validation.client.constraints.DecimalMaxValidatorForStringTest;
-import com.google.gwt.validation.client.constraints.DecimalMinValidatorForNumberTest;
-import com.google.gwt.validation.client.constraints.DecimalMinValidatorForStringTest;
-import com.google.gwt.validation.client.constraints.DigitsValidatorForNumberTest;
-import com.google.gwt.validation.client.constraints.DigitsValidatorForStringTest;
-import com.google.gwt.validation.client.constraints.FutureValidatorForDateTest;
-import com.google.gwt.validation.client.constraints.MaxValidatorForNumberTest;
-import com.google.gwt.validation.client.constraints.MaxValidatorForStringTest;
-import com.google.gwt.validation.client.constraints.MinValidatorForNumberTest;
-import com.google.gwt.validation.client.constraints.MinValidatorForStringTest;
-import com.google.gwt.validation.client.constraints.NotNullValidatorTest;
-import com.google.gwt.validation.client.constraints.NullValidatorTest;
-import com.google.gwt.validation.client.constraints.PastValidatorForDateTest;
-import com.google.gwt.validation.client.constraints.PatternValidatorTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfBooleanTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfByteTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfCharTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfDoubleTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfFloatTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfIntTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfLongTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfObjectTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfShortTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForCollectionTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForMapTest;
-import com.google.gwt.validation.client.constraints.SizeValidatorForStringTest;
+import com.google.gwt.validation.testing.constraints.AssertFalseValidatorTest;
+import com.google.gwt.validation.testing.constraints.AssertTrueValidatorTest;
+import com.google.gwt.validation.testing.constraints.DecimalMaxValidatorForNumberTest;
+import com.google.gwt.validation.testing.constraints.DecimalMaxValidatorForStringTest;
+import com.google.gwt.validation.testing.constraints.DecimalMinValidatorForNumberTest;
+import com.google.gwt.validation.testing.constraints.DecimalMinValidatorForStringTest;
+import com.google.gwt.validation.testing.constraints.DigitsValidatorForNumberTest;
+import com.google.gwt.validation.testing.constraints.DigitsValidatorForStringTest;
+import com.google.gwt.validation.testing.constraints.FutureValidatorForDateTest;
+import com.google.gwt.validation.testing.constraints.MaxValidatorForNumberTest;
+import com.google.gwt.validation.testing.constraints.MaxValidatorForStringTest;
+import com.google.gwt.validation.testing.constraints.MinValidatorForNumberTest;
+import com.google.gwt.validation.testing.constraints.MinValidatorForStringTest;
+import com.google.gwt.validation.testing.constraints.NotNullValidatorTest;
+import com.google.gwt.validation.testing.constraints.NullValidatorTest;
+import com.google.gwt.validation.testing.constraints.PastValidatorForDateTest;
+import com.google.gwt.validation.testing.constraints.PatternValidatorTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfBooleanTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfByteTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfCharTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfDoubleTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfFloatTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfIntTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfLongTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfObjectTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForArrayOfShortTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForCollectionTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForMapTest;
+import com.google.gwt.validation.testing.constraints.SizeValidatorForStringTest;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
diff --git a/user/test/com/google/gwt/validation/client/constraints/AssertFalseValidatorTest.java b/user/test/com/google/gwt/validation/testing/constraints/AssertFalseValidatorTest.java
similarity index 90%
rename from user/test/com/google/gwt/validation/client/constraints/AssertFalseValidatorTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/AssertFalseValidatorTest.java
index 771247a..2774770 100644
--- a/user/test/com/google/gwt/validation/client/constraints/AssertFalseValidatorTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/AssertFalseValidatorTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.AssertFalseValidator;
 
 import javax.validation.constraints.AssertFalse;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/AssertTrueValidatorTest.java b/user/test/com/google/gwt/validation/testing/constraints/AssertTrueValidatorTest.java
similarity index 87%
rename from user/test/com/google/gwt/validation/client/constraints/AssertTrueValidatorTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/AssertTrueValidatorTest.java
index 5ff0379..a09624e 100644
--- a/user/test/com/google/gwt/validation/client/constraints/AssertTrueValidatorTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/AssertTrueValidatorTest.java
@@ -13,12 +13,14 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.AssertTrueValidator;
 
 import javax.validation.constraints.AssertTrue;
 
 /**
- * Tests for {@link AssertFalseValidator}.
+ * Tests for {@link AssertTrueValidator}.
  */
 public class AssertTrueValidatorTest extends
     ConstraintValidatorTestCase<AssertTrue, Boolean> {
diff --git a/user/test/com/google/gwt/validation/client/constraints/ConstraintValidatorTestCase.java b/user/test/com/google/gwt/validation/testing/constraints/ConstraintValidatorTestCase.java
similarity index 98%
rename from user/test/com/google/gwt/validation/client/constraints/ConstraintValidatorTestCase.java
rename to user/test/com/google/gwt/validation/testing/constraints/ConstraintValidatorTestCase.java
index d267949..7ad37ee 100644
--- a/user/test/com/google/gwt/validation/client/constraints/ConstraintValidatorTestCase.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/ConstraintValidatorTestCase.java
@@ -13,7 +13,7 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
 
 import junit.framework.TestCase;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumberTest.java b/user/test/com/google/gwt/validation/testing/constraints/DecimalMaxValidatorForNumberTest.java
similarity index 91%
rename from user/test/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumberTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/DecimalMaxValidatorForNumberTest.java
index c91bb52..f39674f 100644
--- a/user/test/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumberTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/DecimalMaxValidatorForNumberTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.DecimalMaxValidatorForNumber;
 
 import javax.validation.constraints.DecimalMax;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForStringTest.java b/user/test/com/google/gwt/validation/testing/constraints/DecimalMaxValidatorForStringTest.java
similarity index 91%
rename from user/test/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForStringTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/DecimalMaxValidatorForStringTest.java
index cc73112..15c69a5 100644
--- a/user/test/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForStringTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/DecimalMaxValidatorForStringTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.DecimalMaxValidatorForString;
 
 import javax.validation.constraints.DecimalMax;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumberTest.java b/user/test/com/google/gwt/validation/testing/constraints/DecimalMinValidatorForNumberTest.java
similarity index 91%
rename from user/test/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumberTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/DecimalMinValidatorForNumberTest.java
index 8b72c9f..8c66325 100644
--- a/user/test/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumberTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/DecimalMinValidatorForNumberTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.DecimalMinValidatorForNumber;
 
 import javax.validation.constraints.DecimalMin;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/DecimalMinValidatorForStringTest.java b/user/test/com/google/gwt/validation/testing/constraints/DecimalMinValidatorForStringTest.java
similarity index 91%
rename from user/test/com/google/gwt/validation/client/constraints/DecimalMinValidatorForStringTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/DecimalMinValidatorForStringTest.java
index 1fa77bd..ea733b6 100644
--- a/user/test/com/google/gwt/validation/client/constraints/DecimalMinValidatorForStringTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/DecimalMinValidatorForStringTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.DecimalMinValidatorForString;
 
 import javax.validation.constraints.DecimalMin;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/DigitsValidatorForNumberTest.java b/user/test/com/google/gwt/validation/testing/constraints/DigitsValidatorForNumberTest.java
similarity index 93%
rename from user/test/com/google/gwt/validation/client/constraints/DigitsValidatorForNumberTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/DigitsValidatorForNumberTest.java
index 8131a06..fffbc38 100644
--- a/user/test/com/google/gwt/validation/client/constraints/DigitsValidatorForNumberTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/DigitsValidatorForNumberTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.DigitsValidatorForNumber;
 
 import java.math.BigDecimal;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/DigitsValidatorForStringTest.java b/user/test/com/google/gwt/validation/testing/constraints/DigitsValidatorForStringTest.java
similarity index 93%
rename from user/test/com/google/gwt/validation/client/constraints/DigitsValidatorForStringTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/DigitsValidatorForStringTest.java
index 9b60d6d..7fca0bf 100644
--- a/user/test/com/google/gwt/validation/client/constraints/DigitsValidatorForStringTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/DigitsValidatorForStringTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.DigitsValidatorForString;
 
 import javax.validation.constraints.Digits;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/FutureValidatorForDateTest.java b/user/test/com/google/gwt/validation/testing/constraints/FutureValidatorForDateTest.java
similarity index 90%
rename from user/test/com/google/gwt/validation/client/constraints/FutureValidatorForDateTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/FutureValidatorForDateTest.java
index bc3a609..65c03e7 100644
--- a/user/test/com/google/gwt/validation/client/constraints/FutureValidatorForDateTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/FutureValidatorForDateTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.FutureValidatorForDate;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/MaxValidatorForNumberTest.java b/user/test/com/google/gwt/validation/testing/constraints/MaxValidatorForNumberTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/MaxValidatorForNumberTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/MaxValidatorForNumberTest.java
index f18b5df..25a3f99 100644
--- a/user/test/com/google/gwt/validation/client/constraints/MaxValidatorForNumberTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/MaxValidatorForNumberTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.MaxValidatorForNumber;
 
 import javax.validation.constraints.Max;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/MaxValidatorForStringTest.java b/user/test/com/google/gwt/validation/testing/constraints/MaxValidatorForStringTest.java
similarity index 90%
rename from user/test/com/google/gwt/validation/client/constraints/MaxValidatorForStringTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/MaxValidatorForStringTest.java
index b5cb1b7..cabdc19 100644
--- a/user/test/com/google/gwt/validation/client/constraints/MaxValidatorForStringTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/MaxValidatorForStringTest.java
@@ -13,12 +13,14 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.MaxValidatorForString;
 
 import javax.validation.constraints.Max;
 
 /**
- * Tests for {@link MinValidatorForString}.
+ * Tests for {@link MaxValidatorForString}.
  */
 public class MaxValidatorForStringTest extends
     ConstraintValidatorTestCase<Max, String> {
diff --git a/user/test/com/google/gwt/validation/client/constraints/MinValidatorForNumberTest.java b/user/test/com/google/gwt/validation/testing/constraints/MinValidatorForNumberTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/MinValidatorForNumberTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/MinValidatorForNumberTest.java
index bbb8a44..e1aad5e 100644
--- a/user/test/com/google/gwt/validation/client/constraints/MinValidatorForNumberTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/MinValidatorForNumberTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.MinValidatorForNumber;
 
 import javax.validation.constraints.Min;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/MinValidatorForStringTest.java b/user/test/com/google/gwt/validation/testing/constraints/MinValidatorForStringTest.java
similarity index 74%
rename from user/test/com/google/gwt/validation/client/constraints/MinValidatorForStringTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/MinValidatorForStringTest.java
index 5c1d526..0a6c091 100644
--- a/user/test/com/google/gwt/validation/client/constraints/MinValidatorForStringTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/MinValidatorForStringTest.java
@@ -13,20 +13,22 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
 
-import javax.validation.constraints.Max;
+import com.google.gwt.validation.client.constraints.MinValidatorForString;
+
+import javax.validation.constraints.Min;
 
 /**
  * Tests for {@link MinValidatorForString}.
  */
 public class MinValidatorForStringTest extends
-    ConstraintValidatorTestCase<Max, String> {
+    ConstraintValidatorTestCase<Min, String> {
   private static String SAME = "123456789";
   private static String SMALLER = "123456788";
   private static String BIGGER = "123456790";
 
-  @Max(123456789)
+  @Min(123456789)
   public String defaultField;
 
   public void testIsValid_same() {
@@ -34,19 +36,19 @@
   }
 
   public void testIsValid_smaller() {
-    assertConstraintValidator(SMALLER, true);
+    assertConstraintValidator(SMALLER, false);
   }
 
   public void testIsValid_bigger() {
-    assertConstraintValidator(BIGGER, false);
+    assertConstraintValidator(BIGGER, true);
   }
 
   public void testIsValid_minValue() {
-    assertConstraintValidator(Long.valueOf(Long.MIN_VALUE).toString(), true);
+    assertConstraintValidator(Long.valueOf(Long.MIN_VALUE).toString(), false);
   }
 
   public void testIsValid_maxValue() {
-    assertConstraintValidator(Long.valueOf(Long.MAX_VALUE).toString(), false);
+    assertConstraintValidator(Long.valueOf(Long.MAX_VALUE).toString(), true);
   }
 
   public void testIsValid_invalid() {
@@ -54,12 +56,12 @@
   }
 
   @Override
-  protected MaxValidatorForString createValidator() {
-    return new MaxValidatorForString();
+  protected MinValidatorForString createValidator() {
+    return new MinValidatorForString();
   }
 
   @Override
-  protected Class<Max> getAnnotationClass() {
-    return Max.class;
+  protected Class<Min> getAnnotationClass() {
+    return Min.class;
   }
 }
diff --git a/user/test/com/google/gwt/validation/client/constraints/NotNullValidatorTest.java b/user/test/com/google/gwt/validation/testing/constraints/NotNullValidatorTest.java
similarity index 91%
rename from user/test/com/google/gwt/validation/client/constraints/NotNullValidatorTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/NotNullValidatorTest.java
index bf4dc31..4a11f40 100644
--- a/user/test/com/google/gwt/validation/client/constraints/NotNullValidatorTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/NotNullValidatorTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.NotNullValidator;
 
 import javax.validation.ConstraintValidator;
 import javax.validation.constraints.NotNull;
diff --git a/user/test/com/google/gwt/validation/client/constraints/NullValidatorTest.java b/user/test/com/google/gwt/validation/testing/constraints/NullValidatorTest.java
similarity index 89%
rename from user/test/com/google/gwt/validation/client/constraints/NullValidatorTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/NullValidatorTest.java
index 7197064..5c17697 100644
--- a/user/test/com/google/gwt/validation/client/constraints/NullValidatorTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/NullValidatorTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.NullValidator;
 
 import javax.validation.constraints.Null;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/PastValidatorForDateTest.java b/user/test/com/google/gwt/validation/testing/constraints/PastValidatorForDateTest.java
similarity index 90%
rename from user/test/com/google/gwt/validation/client/constraints/PastValidatorForDateTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/PastValidatorForDateTest.java
index 7c3d37a..a791372 100644
--- a/user/test/com/google/gwt/validation/client/constraints/PastValidatorForDateTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/PastValidatorForDateTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.PastValidatorForDate;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/PatternValidatorTest.java b/user/test/com/google/gwt/validation/testing/constraints/PatternValidatorTest.java
similarity index 88%
rename from user/test/com/google/gwt/validation/client/constraints/PatternValidatorTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/PatternValidatorTest.java
index 60f3fea..2385c76 100644
--- a/user/test/com/google/gwt/validation/client/constraints/PatternValidatorTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/PatternValidatorTest.java
@@ -13,14 +13,16 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.PatternValidator;
 
 import java.util.Date;
 
 import javax.validation.constraints.Pattern;
 
 /**
- * Tests for {@link PastValidatorForDate}.
+ * Tests for {@link PatternValidator}.
  */
 public class PatternValidatorTest extends
     ConstraintValidatorTestCase<Pattern, String> {
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBooleanTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfBooleanTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBooleanTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfBooleanTest.java
index 3c70fbd..598c4aa 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBooleanTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfBooleanTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfBoolean;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByteTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfByteTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByteTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfByteTest.java
index 4efd56f..b893b49 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByteTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfByteTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfByte;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfCharTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfCharTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfCharTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfCharTest.java
index c831e8f..febd2e1 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfCharTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfCharTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfChar;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDoubleTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfDoubleTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDoubleTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfDoubleTest.java
index 7be25ae..d558396 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDoubleTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfDoubleTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfDouble;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloatTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfFloatTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloatTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfFloatTest.java
index f265b45..0d7aca2 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloatTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfFloatTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfFloat;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfIntTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfIntTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfIntTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfIntTest.java
index 0e37693..5b44f0c 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfIntTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfIntTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfInt;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLongTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfLongTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLongTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfLongTest.java
index c8b3b41..440befc 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLongTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfLongTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfLong;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObjectTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfObjectTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObjectTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfObjectTest.java
index 34da630..a93b307 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObjectTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfObjectTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfObject;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShortTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfShortTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShortTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfShortTest.java
index bfab23f..ad34615 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShortTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForArrayOfShortTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfShort;
 
 import java.util.Date;
 
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForCollectionTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForCollectionTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForCollectionTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForCollectionTest.java
index 6a44d53..5a81d84 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForCollectionTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForCollectionTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForCollection;
 
 import java.util.ArrayList;
 import java.util.Collection;
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForMapTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForMapTest.java
similarity index 92%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForMapTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForMapTest.java
index 67eb163..8b50d34 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForMapTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForMapTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForMap;
 
 import java.util.Date;
 import java.util.HashMap;
diff --git a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForStringTest.java b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForStringTest.java
similarity index 91%
rename from user/test/com/google/gwt/validation/client/constraints/SizeValidatorForStringTest.java
rename to user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForStringTest.java
index 26c0198..a27d0be 100644
--- a/user/test/com/google/gwt/validation/client/constraints/SizeValidatorForStringTest.java
+++ b/user/test/com/google/gwt/validation/testing/constraints/SizeValidatorForStringTest.java
@@ -13,7 +13,9 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package com.google.gwt.validation.client.constraints;
+package com.google.gwt.validation.testing.constraints;
+
+import com.google.gwt.validation.client.constraints.SizeValidatorForString;
 
 import java.util.Date;