Author: hardy.ferentschik
Date: 2009-03-13 05:00:59 -0400 (Fri, 13 Mar 2009)
New Revision: 16154
Removed:
validator/trunk/hibernate-validator/src/test/resources/org/
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/Length.java
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/NotEmpty.java
validator/trunk/hibernate-validator/src/test/resources/ValidationMessages_es.properties
Log:
Fixed broken tests after changes to message interpolation API
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/Length.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/Length.java 2009-03-13
07:06:43 UTC (rev 16153)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/Length.java 2009-03-13
09:00:59 UTC (rev 16154)
@@ -40,7 +40,7 @@
int max() default Integer.MAX_VALUE;
- String message() default "{validator.length}";
+ String message() default "{constraint.length}";
Class<?>[] groups() default { };
}
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/NotEmpty.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/NotEmpty.java 2009-03-13
07:06:43 UTC (rev 16153)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/constraints/NotEmpty.java 2009-03-13
09:00:59 UTC (rev 16154)
@@ -33,7 +33,7 @@
@Target({ METHOD, FIELD })
@Retention(RUNTIME)
public @interface NotEmpty {
- String message() default "{validator.notEmpty}";
+ String message() default "{constraint.notEmpty}";
Class<?>[] groups() default { };
}
\ No newline at end of file
Modified:
validator/trunk/hibernate-validator/src/test/resources/ValidationMessages_es.properties
===================================================================
---
validator/trunk/hibernate-validator/src/test/resources/ValidationMessages_es.properties 2009-03-13
07:06:43 UTC (rev 16153)
+++
validator/trunk/hibernate-validator/src/test/resources/ValidationMessages_es.properties 2009-03-13
09:00:59 UTC (rev 16154)
@@ -1 +1 @@
-validator.notNull=no puede ser null
\ No newline at end of file
+constraint.notNull=no puede ser null
\ No newline at end of file
Show replies by date