Permalink
Browse files

Set message to 'Must be unique'

  • Loading branch information...
1 parent ebf6222 commit e94ca155dd79c99c046054d9f3b4e0e804e19dd4 @opensource21 opensource21 committed with mbknor Jan 6, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −1 resources/messages
  2. +2 −2 samples-and-tests/just-test-cases/test/UniqueTest.java
View
@@ -28,4 +28,5 @@ validation.notFound=Object not found for id %2$s
validation.url=Not a valid URL
validation.phone=Not a valid phone
validation.ipv4=Not a valid IP address
-validation.ipv6=Not a valid IP v6 address
+validation.ipv6=Not a valid IP v6 address
+validation.unique=Must be unique
@@ -31,7 +31,7 @@ public void testSingleColumn() {
assertFalse(res.ok);
assertNotNull(Validation.errors(".isbn"));
Error error = Validation.errors(".isbn").get(0);
- assertEquals("validation.unique", error.message());
+ assertEquals("Must be unique", error.message());
}
@Test
@@ -43,7 +43,7 @@ public void testMultiColumn() {
assertFalse(res.ok);
assertNotNull(Validation.errors(".title"));
Error error = Validation.errors(".title").get(0);
- assertEquals("validation.unique", error.message());
+ assertEquals("Must be unique", error.message());
Validation.clear();
firstBook.title = "Bobs Book";

0 comments on commit e94ca15

Please sign in to comment.