Author: hardy.ferentschik
Date: 2009-02-10 13:38:46 -0500 (Tue, 10 Feb 2009)
New Revision: 15930
Modified:
validator/trunk/hibernate-validator/pom.xml
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/ValidatorImplTest.java
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/util/ReflectionHelperTest.java
Log:
removed dependency to tck-utils
Modified: validator/trunk/hibernate-validator/pom.xml
===================================================================
--- validator/trunk/hibernate-validator/pom.xml 2009-02-10 17:36:47 UTC (rev 15929)
+++ validator/trunk/hibernate-validator/pom.xml 2009-02-10 18:38:46 UTC (rev 15930)
@@ -38,12 +38,6 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>tck-utils</artifactId>
- <version>0.9-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
<resources>
@@ -146,40 +140,4 @@
</plugin>
</plugins>
</reporting>
- <profiles>
- <profile>
- <id>tck-audit</id>
- <activation>
- <jdk>1.6</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <compilerArgument>-proc:none</compilerArgument>
- </configuration>
- <executions>
- <execution>
- <id>run-annotation-processor-only</id>
- <phase>process-test-resources</phase>
- <goals>
- <goal> testCompile</goal>
- </goals>
- <configuration>
-
<compilerArgument>-proc:only</compilerArgument>
- <compilerArguments>
-
<processor>org.hibernate.tck.report.CoverageProcessor</processor>
- </compilerArguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
Modified:
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/ValidatorImplTest.java
===================================================================
---
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/ValidatorImplTest.java 2009-02-10
17:36:47 UTC (rev 15929)
+++
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/ValidatorImplTest.java 2009-02-10
18:38:46 UTC (rev 15930)
@@ -29,7 +29,6 @@
import static org.junit.Assert.fail;
import org.junit.Test;
-import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.validation.eg.Actor;
import org.hibernate.validation.eg.Address;
import org.hibernate.validation.eg.Animal;
@@ -55,7 +54,7 @@
*/
public class ValidatorImplTest {
- @SpecAssertion( section = "3.1" )
+ // @SpecAssertion( section = "3.1" )
@Test
public void testWrongMethodName() {
try {
@@ -324,7 +323,7 @@
}
@Test
- @SpecAssertion( section = "2.2" )
+ // @SpecAssertion( section = "2.2" )
public void testMultiValueConstraint() {
Validator validator = TestUtil.getValidator();
@@ -343,7 +342,7 @@
}
@Test
- @SpecAssertion( section = "3.5.1" )
+ // @SpecAssertion( section = "3.5.1" )
public void testGraphValidation() {
Validator validator = TestUtil.getValidator();
Modified:
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/util/ReflectionHelperTest.java
===================================================================
---
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/util/ReflectionHelperTest.java 2009-02-10
17:36:47 UTC (rev 15929)
+++
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/util/ReflectionHelperTest.java 2009-02-10
18:38:46 UTC (rev 15930)
@@ -24,8 +24,8 @@
import java.util.List;
import java.util.Map;
import javax.validation.ValidationException;
-import javax.validation.groups.Default;
import javax.validation.constraints.NotNull;
+import javax.validation.groups.Default;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -39,10 +39,9 @@
import org.hibernate.validation.constraints.Patterns;
import org.hibernate.validation.constraints.incomplete.NoGroups;
import org.hibernate.validation.constraints.incomplete.NoMessage;
+import org.hibernate.validation.constraints.incomplete.ValidProperty;
import org.hibernate.validation.eg.Engine;
import org.hibernate.validation.eg.Order;
-import org.hibernate.validation.constraints.incomplete.ValidProperty;
-import org.hibernate.tck.annotations.SpecAssertion;
/**
* Tests for the <code>ReflectionHelper</code>.
@@ -132,7 +131,7 @@
}
@Test
- @SpecAssertion(section = "2.1.1.2", note = "constraint annotation must
specify a groups element")
+ // @SpecAssertion(section = "2.1.1.2", note = "constraint annotation must
specify a groups element")
public void testConstraintWithNoMessage() {
Annotation annotation = new NoGroups() {
public String message() {
@@ -149,7 +148,7 @@
}
@Test
- @SpecAssertion(section = "2.1.1.1", note = "constraint annotation must
specify a groups element")
+ // @SpecAssertion(section = "2.1.1.1", note = "constraint annotation must
specify a groups element")
public void testConstraintWithNoGroups() {
Annotation annotation = new NoMessage() {
public Class<?>[] groups() {
@@ -166,7 +165,7 @@
}
@Test
- @SpecAssertion(section = "2.1.1", note = "properties cannot begin with
'valid'")
+ // @SpecAssertion(section = "2.1.1", note = "properties cannot begin with
'valid'")
public void testConstraintWithValidInPropertyName() {
Annotation annotation = new ValidProperty() {
public String message() {
Show replies by date