Skip to content

Commit

Permalink
Issue #325: tests @Length annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
daivanov committed Jun 24, 2024
1 parent c7d59cf commit 16e5f67
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/uk/co/jemos/podam/test/dto/ValidatedPojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 16e5f67

Please sign in to comment.