Permalink
Browse files

HV-597 Updating tck-runner module to run against the new Arquillian b…

…ased TCK (see BVTCK-10)
  • Loading branch information...
1 parent 3f96394 commit 7471c50ed3aaef71973b0733ae968782b2173f7e @hferentschik hferentschik committed Jun 25, 2012
@@ -29,7 +29,7 @@
available for anonymous access on <ulink
url="https://github.com/beanvalidation/beanvalidation-tck">GitHub</ulink>.
In particular the TCK's <ulink
- url="https://github.com/beanvalidation/beanvalidation-tck/tree/master/src/main/java/org/hibernate/jsr303/tck/tests">tests</ulink>
+ url="https://github.com/beanvalidation/beanvalidation-tck/tree/master/src/main/java/org/hibernate/beanvalidation/tck/tests">tests</ulink>
might be of interest. <ulink url="http://jcp.org/en/jsr/detail?id=303">The
JSR 303</ulink> specification itself is also a great way to deepen your
understanding of Bean Validation resp. Hibernate Validator.</para>
View
14 pom.xml
@@ -366,11 +366,6 @@
<version>1.0.2</version>
</plugin>
<plugin>
- <groupId>org.codehaus.gmaven</groupId>
- <artifactId>gmaven-plugin</artifactId>
- <version>1.3</version>
- </plugin>
- <plugin>
<groupId>org.zanata</groupId>
<artifactId>zanata-maven-plugin</artifactId>
<version>1.3</version>
@@ -421,11 +416,16 @@
<artifactId>chronos-jmeter-maven-plugin</artifactId>
<version>${org.codehaus.mojo.chronos.version}</version>
</plugin>
- <plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>2.4</version>
- </plugin>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.gmaven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.4</version>
+ </plugin>
</plugins>
</pluginManagement>
</build>
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -12,7 +12,7 @@ used when running
## In container
-You can also run the TCK test against JBoss AS7 (>=[7.1.0.Beta1b](http://www.jboss.org/jbossas/downloads/)). In this case the tests are bundled as war files and executed
+You can also run the TCK test against JBoss AS7. In this case the tests are bundled as war files and executed
in a remote JBoss AS7 instance:
$ mvn clean test -Dincontainer
@@ -1,2 +0,0 @@
-org.jboss.testharness.api.TestLauncher=org.jboss.testharness.impl.runner.servlet.ServletTestLauncher
-org.jboss.testharness.testPackage=org.hibernate.jsr303.tck.tests
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ JBoss, Home of Professional Open Source.
+ ~ Copyright 2010, Red Hat, Inc., and individual contributors
+ ~ as indicated by the @author tags. See the copyright.txt file in the
+ ~ distribution for a full listing of individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<module xmlns="urn:jboss:module:1.1" name="javax.validation.api">
+ <resources>
+ <resource-root path="validation-api.jar"/>
+ <!-- Insert resources here -->
+ </resources>
+
+ <dependencies>
+ <module name="org.jboss.logging"/>
+ </dependencies>
+</module>
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ JBoss, Home of Professional Open Source.
+ ~ Copyright 2010, Red Hat, Inc., and individual contributors
+ ~ as indicated by the @author tags. See the copyright.txt file in the
+ ~ distribution for a full listing of individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<module xmlns="urn:jboss:module:1.1" name="org.hibernate.validator">
+ <resources>
+ <resource-root path="hibernate-validator.jar"/>
+ <!-- Insert resources here -->
+ </resources>
+
+ <dependencies>
+ <module name="javax.api"/>
+ <module name="javax.persistence.api"/>
+ <module name="javax.validation.api"/>
+ <module name="javax.persistence.api"/>
+ <module name="javax.xml.bind.api"/>
+ <module name="org.jboss.logging"/>
+ <module name="org.jboss.common-core"/>
+ <module name="org.joda.time"/>
+ <module name="org.slf4j"/>
+ <module name="org.apache.xerces" services="import"/>
+ <module name="sun.jdk" services="import"/>
+ </dependencies>
+</module>
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2012, Red Hat, Inc. and/or its affiliates or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ -->
+<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jboss.org/schema/arquillian
+ http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+
+ <!-- Need to set the default protocol and use resource filtering, because of https://issues.jboss.org/browse/ARQ-579 -->
+ <defaultProtocol type="${arquillian.protocol}"/>
+
+ <engine>
+ <property name="deploymentExportPath">target/artifacts</property>
+ </engine>
+
+ <container qualifier="local" default="true">
+ <protocol type="Local"/> <!-- Takes no effect - ARQ-579 -->
+ </container>
+
+ <container qualifier="incontainer">
+ <protocol type="Servlet 3.0"/> <!-- Takes no effect - ARQ-579 -->
+ <configuration>
+ <property name="jbossHome">${jbossTargetDir}</property>
+ <property name="javaVmArguments">-Xmx1024m -XX:MaxPermSize=512m ${remote.debug} -Dvalidation.provider=${validation.provider}</property>
+ <property name="allowConnectingToRunningServer">true</property>
+ </configuration>
+ </container>
+
+</arquillian>

0 comments on commit 7471c50

Please sign in to comment.