Index: order-service/trunk/test/functional/com/lemans/api/order/note/SalesOrderNoteFunctionalSpec.groovy =================================================================== diff -u -r8305 -r10074 --- order-service/trunk/test/functional/com/lemans/api/order/note/SalesOrderNoteFunctionalSpec.groovy (.../SalesOrderNoteFunctionalSpec.groovy) (revision 8305) +++ order-service/trunk/test/functional/com/lemans/api/order/note/SalesOrderNoteFunctionalSpec.groovy (.../SalesOrderNoteFunctionalSpec.groovy) (revision 10074) @@ -100,7 +100,7 @@ then: with(payload) { with(messages[0]) { - text.contains('exceeds the maximum size of 4,000') + text.contains('must be 4,000 characters or less') type == 'error' field == 'note' } Index: order-service/trunk/test/functional/com/lemans/api/order/header/SalesOrderHeaderFunctionalSpec.groovy =================================================================== diff -u -r10040 -r10074 --- order-service/trunk/test/functional/com/lemans/api/order/header/SalesOrderHeaderFunctionalSpec.groovy (.../SalesOrderHeaderFunctionalSpec.groovy) (revision 10040) +++ order-service/trunk/test/functional/com/lemans/api/order/header/SalesOrderHeaderFunctionalSpec.groovy (.../SalesOrderHeaderFunctionalSpec.groovy) (revision 10074) @@ -166,7 +166,7 @@ with(payload) { with(messages[0]) { type == 'error' - text == 'dealerCode with value 1000222 exceeds the maximum size of 6' + text == 'dealerCode must be 6 characters or less' field == 'dealerCode' } with(messages[1]) { @@ -348,7 +348,7 @@ with(payload) { with(messages[0]) { type == 'error' - text == 'contactName with value _________________________ exceeds the maximum size of 20' + text == 'contactName must be 20 characters or less' field == 'contactName' } } Index: order-service/trunk/grails-app/i18n/messages.properties =================================================================== diff -u -r8870 -r10074 --- order-service/trunk/grails-app/i18n/messages.properties (.../messages.properties) (revision 8870) +++ order-service/trunk/grails-app/i18n/messages.properties (.../messages.properties) (revision 10074) @@ -6,7 +6,7 @@ default.invalid.size.message={0} with value {2} does not fall within the valid size range from {3} to {4} default.invalid.max.message={0} with value {2} exceeds maximum value {3} default.invalid.min.message={0} with value {2} is less than minimum value {3} -default.invalid.max.size.message={0} with value {2} exceeds the maximum size of {3} +default.invalid.max.size.message={0} must be {3} characters or less default.invalid.min.size.message={0} with value {2} is less than the minimum size of {3} default.invalid.validator.message={0} with value {2} does not pass custom validation default.not.inlist.message={0} with value {2} is not contained within the list {3} Index: order-service/trunk/test/functional/com/lemans/api/order/line/MultiLinePersistenceFunctionalSpec.groovy =================================================================== diff -u -r8268 -r10074 --- order-service/trunk/test/functional/com/lemans/api/order/line/MultiLinePersistenceFunctionalSpec.groovy (.../MultiLinePersistenceFunctionalSpec.groovy) (revision 8268) +++ order-service/trunk/test/functional/com/lemans/api/order/line/MultiLinePersistenceFunctionalSpec.groovy (.../MultiLinePersistenceFunctionalSpec.groovy) (revision 10074) @@ -450,7 +450,7 @@ then: noActionTaken(payload) with(payload) { - error(messages[0], 'comment with value _______________________________ exceeds the maximum size of 30', 'comment', 1) + error(messages[0], 'comment must be 30 characters or less', 'comment', 1) error(messages[1], 'Quantity with value 1,000 exceeds maximum value 999', 'quantity', 2) } } Index: order-service/trunk/test/functional/com/lemans/api/order/line/SingleLineUpdateFunctionalSpec.groovy =================================================================== diff -u -r8109 -r10074 --- order-service/trunk/test/functional/com/lemans/api/order/line/SingleLineUpdateFunctionalSpec.groovy (.../SingleLineUpdateFunctionalSpec.groovy) (revision 8109) +++ order-service/trunk/test/functional/com/lemans/api/order/line/SingleLineUpdateFunctionalSpec.groovy (.../SingleLineUpdateFunctionalSpec.groovy) (revision 10074) @@ -242,7 +242,7 @@ then: noActionTaken(payload) with(payload) { - error(messages[0], 'comment with value _______________________________ exceeds the maximum size of 30', 'comment', 1) + error(messages[0], 'comment must be 30 characters or less', 'comment', 1) } }