From aff62b7cd750dc46cae5eb8d93535ae7ed764049 Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Wed, 10 Oct 2012 08:56:29 -0500 Subject: [PATCH] Added specific message key for testing `@NotNull` handling. --- .../org/springframework/data/rest/test/webmvc/Customer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java index afc963597..a36e96a42 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java @@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull; public class Customer { @Id @GeneratedValue private Long id; - @NotNull + @NotNull(message = "no.userid") private String userid; public Long getId() {