diff --git a/src/test/java/uk/co/jemos/podam/test/dto/ValidatedPojo.java b/src/test/java/uk/co/jemos/podam/test/dto/ValidatedPojo.java index d81fd51e7..c492e7f39 100644 --- a/src/test/java/uk/co/jemos/podam/test/dto/ValidatedPojo.java +++ b/src/test/java/uk/co/jemos/podam/test/dto/ValidatedPojo.java @@ -5,6 +5,7 @@ import org.hibernate.validator.constraints.Email; +import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.NotBlank; import org.hibernate.validator.constraints.NotEmpty; @@ -108,6 +109,9 @@ public class ValidatedPojo { @Future private Calendar futureCalendar; + @Length(min = 7, max = 10) + private String strWithLength; + @Size(min = 7, max = 10) private String sizedString; @@ -319,6 +323,14 @@ public void setFutureCalendar(Calendar futureCalendar) { this.futureCalendar = futureCalendar; } + public String getStrWithLength() { + return strWithLength; + } + + public void setStrWithLength(String strWithLength) { + this.strWithLength = strWithLength; + } + public String getSizedString() { return sizedString; }