You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by st...@apache.org on 2018/06/09 10:26:36 UTC
bval git commit: fix encoding issue with the TCK the hardcore way...
Repository: bval
Updated Branches:
refs/heads/bv2 25edc7585 -> 798012ead
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/798012ea
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/798012ea
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/798012ea
Branch: refs/heads/bv2
Commit: 798012ead094f1567cc44ad9ae4e2e548b44b4b9
Parents: 25edc75
Author: Mark Struberg <st...@apache.org>
Authored: Sat Jun 9 12:25:37 2018 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Sat Jun 9 12:25:37 2018 +0200
----------------------------------------------------------------------
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/798012ea/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/798012ea/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/798012ea/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"/>
-->