Skip to content

Commit

Permalink
fix test for junit
Browse files Browse the repository at this point in the history
  • Loading branch information
BaldiVi committed Jan 21, 2025
1 parent 7865e69 commit 3b0e7a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/it/gov/pagopa/tpp/utils/faker/TppDTOFaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import it.gov.pagopa.tpp.enums.AuthenticationType;
import it.gov.pagopa.tpp.model.Contact;

import java.util.HashMap;

public class TppDTOFaker {

private TppDTOFaker(){}
Expand All @@ -26,6 +28,10 @@ public static TppDTO mockInstance(Boolean bias) {
.lastUpdateDate(null)
.creationDate(null)
.tokenSection(TokenSectionFaker.mockInstance())
.paymentButton("#button")
.agentDeepLinks(new HashMap<>() {{
put("agent", "link");
}})
.build();
}

Expand Down
6 changes: 6 additions & 0 deletions src/test/java/it/gov/pagopa/tpp/utils/faker/TppFaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import it.gov.pagopa.tpp.model.Contact;
import it.gov.pagopa.tpp.model.Tpp;

import java.util.HashMap;

public class TppFaker {

private TppFaker(){}
Expand All @@ -26,6 +28,10 @@ public static Tpp mockInstance(Boolean bias){
.lastUpdateDate(null)
.creationDate(null)
.tokenSection(TokenSectionFaker.mockInstance())
.paymentButton("#button")
.agentDeepLinks(new HashMap<>() {{
put("agent", "link");
}})
.build();
}
}

0 comments on commit 3b0e7a4

Please sign in to comment.