Revision: 10511
Author: [email protected]
Date: Tue Aug 9 04:04:10 2011
Log: Test the German messages in the TCK.
[JSR 303 TCK Result] 155 of 257 (60.31%) Pass with 25 Failures and 7 Errors.
Review at http://gwt-code-reviews.appspot.com/1510805
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=10511
Added:
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/MessageInterpolation_de_GwtTest.java
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckTest_de.gwt.xml
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckUserValidationMessageResolver.java
Deleted:
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckUserValidationMessageProvider.java
Modified:
/trunk/user/test/com/google/gwt/validation/tck/MessageInterpolationGwtSuite.java
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/MessageInterpolationGwtTest.java
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckTest.gwt.xml
=======================================
--- /dev/null
+++
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/MessageInterpolation_de_GwtTest.java
Tue Aug 9 04:04:10 2011
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package org.hibernate.jsr303.tck.tests.messageinterpolation;
+
+import com.google.gwt.junit.client.GWTTestCase;
+
+/**
+ * Wraps the German only part of {@link MessageInterpolationTest}.
+ */
+public class MessageInterpolation_de_GwtTest extends GWTTestCase {
+ private final MessageInterpolationTest delegate = new
MessageInterpolationTest();
+
+ @Override
+ public String getModuleName() {
+
return "org.hibernate.jsr303.tck.tests.messageinterpolation.TckTest_de";
+ }
+
+ public void testMessageInterpolationWithLocale() {
+ // Note this test doesn't actually pass in the de local, instead it
sets the
+ // default local as de.
+ delegate.testMessageInterpolationWithLocale();
+ }
+}
=======================================
--- /dev/null
+++
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckTest_de.gwt.xml
Tue Aug 9 04:04:10 2011
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit
2.0.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.0.1/distro-source/core/src/gwt-module.dtd">
+<!--
+ Copyright 2010 Google Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ use this file except in compliance with the License. You may obtain a
copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations
under
+ the License.
+-->
+<module>
+ <inherits name="org.hibernate.jsr303.tck.tests.ValidationTck" />
+ <source path="">
+ <include name="*.java" />
+ </source>
+ <replace-with
class="org.hibernate.jsr303.tck.tests.messageinterpolation.TckUserValidationMessageResolver">
+ <when-type-is
class="com.google.gwt.validation.client.UserValidationMessagesResolver" />
+ </replace-with>
+ <replace-with
class="org.hibernate.jsr303.tck.tests.messageinterpolation.TckTestValidatorFactory">
+ <when-type-is class="javax.validation.ValidatorFactory"/>
+ </replace-with>
+ <extend-property name="locale" values="de"/>
+ <set-property name = "locale" value = "de"/>
+</module>
=======================================
--- /dev/null
+++
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckUserValidationMessageResolver.java
Tue Aug 9 04:04:10 2011
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
+ * use this file except in compliance with the License. You may obtain a
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package org.hibernate.jsr303.tck.tests.messageinterpolation;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.i18n.client.ConstantsWithLookup;
+import com.google.gwt.validation.client.AbstractValidationMessageResolver;
+import com.google.gwt.validation.client.UserValidationMessagesResolver;
+
+/**
+ * Custom messages from {@link ValidationMessages}.
+ */
+public class TckUserValidationMessageResolver extends
+ AbstractValidationMessageResolver implements
+ UserValidationMessagesResolver {
+
+ public TckUserValidationMessageResolver() {
+ super((ConstantsWithLookup) GWT.create(ValidationMessages.class));
+ }
+}
=======================================
---
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckUserValidationMessageProvider.java
Tue Jan 11 14:19:47 2011
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2010 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
not
- * use this file except in compliance with the License. You may obtain a
copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
under
- * the License.
- */
-package org.hibernate.jsr303.tck.tests.messageinterpolation;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.i18n.client.ConstantsWithLookup;
-import com.google.gwt.validation.client.AbstractValidationMessageResolver;
-import com.google.gwt.validation.client.UserValidationMessagesResolver;
-
-/**
- * Custom messages from {@link ValidationMessages}.
- */
-public class TckUserValidationMessageProvider extends
- AbstractValidationMessageResolver implements
- UserValidationMessagesResolver {
-
- public TckUserValidationMessageProvider() {
- super((ConstantsWithLookup) GWT.create(ValidationMessages.class));
- }
-}
=======================================
---
/trunk/user/test/com/google/gwt/validation/tck/MessageInterpolationGwtSuite.java
Mon Mar 21 12:22:19 2011
+++
/trunk/user/test/com/google/gwt/validation/tck/MessageInterpolationGwtSuite.java
Tue Aug 9 04:04:10 2011
@@ -18,6 +18,7 @@
import junit.framework.Test;
import
org.hibernate.jsr303.tck.tests.messageinterpolation.MessageInterpolationGwtTest;
+import
org.hibernate.jsr303.tck.tests.messageinterpolation.MessageInterpolation_de_GwtTest;
import org.hibernate.jsr303.tck.util.TckTestSuiteWrapper;
/**
@@ -28,6 +29,7 @@
TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
"TCK for GWT Validation, messageinterpolation package");
suite.addTestSuite(MessageInterpolationGwtTest.class);
+ suite.addTestSuite(MessageInterpolation_de_GwtTest.class);
return suite;
}
}
=======================================
---
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/MessageInterpolationGwtTest.java
Tue Jan 11 14:19:47 2011
+++
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/MessageInterpolationGwtTest.java
Tue Aug 9 04:04:10 2011
@@ -17,8 +17,6 @@
import com.google.gwt.junit.client.GWTTestCase;
-import org.hibernate.jsr303.tck.util.client.Failing;
-
/**
* Wraps {@link MessageInterpolationTest}.
*/
@@ -45,11 +43,6 @@
public void testLiteralCurlyBraces() {
delegate.testLiteralCurlyBraces();
}
-
- @Failing(issue = 5763)
- public void testMessageInterpolationWithLocale() {
- delegate.testMessageInterpolationWithLocale();
- }
public void testMessagesCanBeOverriddenAtConstraintLevel() {
delegate.testMessagesCanBeOverriddenAtConstraintLevel();
@@ -74,5 +67,4 @@
public void testUnSuccessfulInterpolation() {
delegate.testUnSuccessfulInterpolation();
}
-
-}
+}
=======================================
---
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckTest.gwt.xml
Tue Jan 11 14:19:47 2011
+++
/trunk/user/test/org/hibernate/jsr303/tck/tests/messageinterpolation/TckTest.gwt.xml
Tue Aug 9 04:04:10 2011
@@ -20,7 +20,7 @@
<source path="">
<include name="*.java" />
</source>
- <replace-with
class="org.hibernate.jsr303.tck.tests.messageinterpolation.TckUserValidationMessageProvider">
+ <replace-with
class="org.hibernate.jsr303.tck.tests.messageinterpolation.TckUserValidationMessageResolver">
<when-type-is
class="com.google.gwt.validation.client.UserValidationMessagesResolver" />
</replace-with>
<replace-with
class="org.hibernate.jsr303.tck.tests.messageinterpolation.TckTestValidatorFactory">
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors