Skip to content

Commit 0cb0167

Browse files
committed
chore(test): change a product id
1 parent 45cf75f commit 0cb0167

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public RequestResponsePact getProduct(PactDslWithProvider builder) {
2828
PactDslJsonBody body = new PactDslJsonBody();
2929
body.stringType("name", "product name");
3030
body.stringType("type", "product series");
31-
body.stringType("id", "5cc989d0-d800-434c-b4bb-b1268499e850");
31+
body.stringType("id", "5cc989d1-d800-434c-b4bb-b1268499e850");
3232

3333
return builder
3434
.given("a product with ID 10 exists")
@@ -46,7 +46,7 @@ public RequestResponsePact getProduct(PactDslWithProvider builder) {
4646
public void testGetProduct(MockServer mockServer) throws IOException {
4747
Product product = new ProductClient().setUrl(mockServer.getUrl()).getProduct("10");
4848

49-
assertThat(product.getId(), is("5cc989d0-d800-434c-b4bb-b1268499e850"));
49+
assertThat(product.getId(), is("5cc989d1-d800-434c-b4bb-b1268499e850"));
5050
}
5151

5252
@Pact(consumer="pactflow-example-consumer-java-junit")
@@ -61,7 +61,7 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) {
6161
.body(PactDslJsonArray.arrayEachLike()
6262
.stringType("name", "product name")
6363
.stringType("type", "product series")
64-
.stringType("id", "5cc989d0-d800-434c-b4bb-b1268499e850")
64+
.stringType("id", "5cc989d1-d800-434c-b4bb-b1268499e850")
6565
.stringType("foo", "bar")
6666
.closeObject())
6767
.toPact();
@@ -72,6 +72,6 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) {
7272
public void testGetProducts(MockServer mockServer) throws IOException {
7373
List<Product> products = new ProductClient().setUrl(mockServer.getUrl()).getProducts();
7474

75-
assertThat(products.get(0).getId(), is("5cc989d0-d800-434c-b4bb-b1268499e850"));
75+
assertThat(products.get(0).getId(), is("5cc989d1-d800-434c-b4bb-b1268499e850"));
7676
}
7777
}

0 commit comments

Comments
 (0)