Skip to content

Commit

Permalink
feat: add foo
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Nov 5, 2024
1 parent 9b171c3 commit 4ae20d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/example/products/Product.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ class Product {
private String id;
private String name;
private String type;
private String foo;

Product() {}

Product(String id, String name, String type) {
Product(String id, String name, String type, String foo) {
this.id = id;
this.name = name;
this.type = type;
this.foo = foo;
}
}
1 change: 1 addition & 0 deletions src/test/java/com/example/products/ProductsPactTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) {
.stringType("name", "product name")
.stringType("type", "product series")
.stringType("id", "5cc989d0-d800-434c-b4bb-b1268499e850")
.stringType("foo", "bar")
.closeObject())
.toPact();
}
Expand Down

0 comments on commit 4ae20d9

Please sign in to comment.