Skip to content

Commit

Permalink
Validation update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitolo-Andrea committed Nov 4, 2024
1 parent c9877d1 commit 984f500
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/it/gov/pagopa/tpp/dto/TppDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TppDTO {
private String tppId;

@NotBlank(message = "Entity ID must not be blank")
@Pattern(regexp = "^(\\d{11}|[A-Za-z0-9]{1,16})$",
@Pattern(regexp = "^(\\d{11}|[A-Za-z0-9]{16})$",
message = "Entity ID must be 11 digits or up to 16 alphanumeric characters")
private String entityId;
private String idPsp;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/it/gov/pagopa/tpp/faker/TppDTOFaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ private TppDTOFaker(){}
public static TppDTO mockInstance(Boolean bias) {
return TppDTO.builder()
.tppId("tppId")
.messageUrl("messageUrl")
.authenticationUrl("AuthenticationUrl")
.messageUrl("https://wwwmessageUrl.it")
.authenticationUrl("https://www.AuthenticationUrl.it")
.authenticationType(AuthenticationType.OAUTH2)
.state(bias)
.entityId("entityId")
.entityId("entityId01234567")
.businessName("businessName")
.contact(new Contact("name","number", "email"))
.build();
Expand Down

0 comments on commit 984f500

Please sign in to comment.