bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject [02/50] bval git commit: fix encoding issue with the TCK the hardcore way...
Date Tue, 16 Oct 2018 17:31:06 GMT
fix encoding issue with the TCK the hardcore way...

nail it do EN


Project: http://git-wip-us.apache.org/repos/asf/bval/repo
Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/8cd26a8d
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/8cd26a8d
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/8cd26a8d

Branch: refs/heads/bv2
Commit: 8cd26a8d86107ec40882c8192addd176883c9855
Parents: c24e3be
Author: Mark Struberg <struberg@apache.org>
Authored: Sat Jun 9 12:25:37 2018 +0200
Committer: Matt Benson <mbenson@apache.org>
Committed: Tue Oct 16 12:28:20 2018 -0500

----------------------------------------------------------------------
 bval-tck/pom.xml                                               | 4 ----
 .../java/org/apache/bval/arquillian/jndi/BValJndiFactory.java  | 6 ++++++
 bval-tck/work-tests-suite.xml                                  | 4 ++--
 3 files changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bval/blob/8cd26a8d/bval-tck/pom.xml
----------------------------------------------------------------------
diff --git a/bval-tck/pom.xml b/bval-tck/pom.xml
index 745f514..5fdb4c2 100644
--- a/bval-tck/pom.xml
+++ b/bval-tck/pom.xml
@@ -173,10 +173,6 @@ under the License.
                             <suiteXmlFiles>
                                 <suiteXmlFile>${basedir}/src/test/beanvalidation-tck-tests-suite.xml</suiteXmlFile>
                             </suiteXmlFiles>
-                            <environmentVariables>
-                                <!-- force english locale and UTF8 because the TCK checks
the messages -->
-                                <LANG>en_EN.UTF-8</LANG>
-                            </environmentVariables>
                             <systemProperties>
                                 <property>
                                     <name>validation.provider</name>

http://git-wip-us.apache.org/repos/asf/bval/blob/8cd26a8d/bval-tck/src/main/java/org/apache/bval/arquillian/jndi/BValJndiFactory.java
----------------------------------------------------------------------
diff --git a/bval-tck/src/main/java/org/apache/bval/arquillian/jndi/BValJndiFactory.java b/bval-tck/src/main/java/org/apache/bval/arquillian/jndi/BValJndiFactory.java
index 3b3d71c..13cc1fe 100644
--- a/bval-tck/src/main/java/org/apache/bval/arquillian/jndi/BValJndiFactory.java
+++ b/bval-tck/src/main/java/org/apache/bval/arquillian/jndi/BValJndiFactory.java
@@ -26,9 +26,15 @@ import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
 import java.util.Hashtable;
+import java.util.Locale;
 
 // mock a context to satisfy lookups
 public class BValJndiFactory implements InitialContextFactory {
+    public BValJndiFactory() {
+        // this is an ugly hack, but the TCK expects us to get english validation messages
:(
+        Locale.setDefault(Locale.ENGLISH);
+    }
+
     public Context getInitialContext(final Hashtable<?, ?> environment) throws NamingException
{
         return Context.class.cast(Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
             new Class<?>[] { Context.class }, new InvocationHandler() {

http://git-wip-us.apache.org/repos/asf/bval/blob/8cd26a8d/bval-tck/work-tests-suite.xml
----------------------------------------------------------------------
diff --git a/bval-tck/work-tests-suite.xml b/bval-tck/work-tests-suite.xml
index a6c08c6..9997a27 100644
--- a/bval-tck/work-tests-suite.xml
+++ b/bval-tck/work-tests-suite.xml
@@ -21,8 +21,8 @@ think to add -Dvalidation.provider=org.apache.bval.jsr.ApacheValidationProvider
 <suite name="tmp" verbose="1">
   <test name="tmp">
     <classes>
-<!--       <class name="org.hibernate.beanvalidation.tck.tests.xmlconfiguration.groupconversion.containerelement.XmlBasedContainerElementGroupConversionValidationTest"/>
-->
-      <class name="org.hibernate.beanvalidation.tck.tests.bootstrap.BootstrapConfigurationTest"/>
+       <class name="org.hibernate.beanvalidation.tck.tests.xmlconfiguration.constraintdeclaration.containerelementlevel.ContainerElementTypeConstraintsForParameterXmlMappingTest"/>
+<!--      <class name="org.hibernate.beanvalidation.tck.tests.bootstrap.BootstrapConfigurationTest"/>-->
 <!--
       <class name="org.hibernate.beanvalidation.tck.tests.util.ConstraintViolationAssertTest"/>
 -->


Mime
View raw message