From 16e5f6716cee16b72226fa0763508a63f78175e0 Mon Sep 17 00:00:00 2001 From: Daniil Ivanov Date: Mon, 24 Jun 2024 20:11:56 +0300 Subject: [PATCH] Issue #325: tests @Length annotation --- .../uk/co/jemos/podam/test/dto/ValidatedPojo.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; }