Skip to content

Commit 14c3fe8

Browse files
committed
feat: add foo
1 parent e70958b commit 14c3fe8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/com/example/products/Product.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ class Product {
1010
private String id;
1111
private String name;
1212
private String type;
13+
private String foo;
1314

1415
Product() {}
1516

16-
Product(String id, String name, String type) {
17+
Product(String id, String name, String type, String foo) {
1718
this.id = id;
1819
this.name = name;
1920
this.type = type;
21+
this.foo = foo;
2022
}
2123
}

src/test/java/com/example/products/ProductsPactTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) {
6262
.stringType("name", "product name")
6363
.stringType("type", "product series")
6464
.stringType("id", "5cc989d0-d800-434c-b4bb-b1268499e850")
65+
.stringType("foo", "bar")
6566
.closeObject())
6667
.toPact();
6768
}

0 commit comments

Comments
 (0)