Author: hardy.ferentschik
Date: 2009-03-10 11:03:29 -0400 (Tue, 10 Mar 2009)
New Revision: 16131
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
Log:
Updated the getting started section due to changes in message interpolation.
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2009-03-10
14:28:07 UTC (rev 16130)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2009-03-10
15:03:29 UTC (rev 16131)
@@ -273,7 +273,7 @@
assertEquals(1, constraintViolations.size());
assertEquals(
- "may not be null",
constraintViolations.iterator().next().getInterpolatedMessage());
+ "may not be null",
constraintViolations.iterator().next().getMessage());
}
@Test
@@ -286,7 +286,7 @@
assertEquals(1, constraintViolations.size());
assertEquals(
- "size must be between 2 and 14",
constraintViolations.iterator().next().getInterpolatedMessage());
+ "size must be between 2 and 14",
constraintViolations.iterator().next().getMessage());
}
@Test
@@ -299,7 +299,7 @@
assertEquals(1, constraintViolations.size());
assertEquals(
- "must be greater than 2",
constraintViolations.iterator().next().getInterpolatedMessage());
+ "must be greater than or equal to 2",
constraintViolations.iterator().next().getMessage());
}
@Test
Show replies by date