From 0cb01674538c7d2376142c44baab022ea329549c Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Tue, 10 Dec 2024 16:06:21 +0000 Subject: [PATCH] chore(test): change a product id --- src/test/java/com/example/products/ProductsPactTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/example/products/ProductsPactTest.java b/src/test/java/com/example/products/ProductsPactTest.java index ede9978..3485548 100644 --- a/src/test/java/com/example/products/ProductsPactTest.java +++ b/src/test/java/com/example/products/ProductsPactTest.java @@ -28,7 +28,7 @@ public RequestResponsePact getProduct(PactDslWithProvider builder) { PactDslJsonBody body = new PactDslJsonBody(); body.stringType("name", "product name"); body.stringType("type", "product series"); - body.stringType("id", "5cc989d0-d800-434c-b4bb-b1268499e850"); + body.stringType("id", "5cc989d1-d800-434c-b4bb-b1268499e850"); return builder .given("a product with ID 10 exists") @@ -46,7 +46,7 @@ public RequestResponsePact getProduct(PactDslWithProvider builder) { public void testGetProduct(MockServer mockServer) throws IOException { Product product = new ProductClient().setUrl(mockServer.getUrl()).getProduct("10"); - assertThat(product.getId(), is("5cc989d0-d800-434c-b4bb-b1268499e850")); + assertThat(product.getId(), is("5cc989d1-d800-434c-b4bb-b1268499e850")); } @Pact(consumer="pactflow-example-consumer-java-junit") @@ -61,7 +61,7 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) { .body(PactDslJsonArray.arrayEachLike() .stringType("name", "product name") .stringType("type", "product series") - .stringType("id", "5cc989d0-d800-434c-b4bb-b1268499e850") + .stringType("id", "5cc989d1-d800-434c-b4bb-b1268499e850") .stringType("foo", "bar") .closeObject()) .toPact(); @@ -72,6 +72,6 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) { public void testGetProducts(MockServer mockServer) throws IOException { List products = new ProductClient().setUrl(mockServer.getUrl()).getProducts(); - assertThat(products.get(0).getId(), is("5cc989d0-d800-434c-b4bb-b1268499e850")); + assertThat(products.get(0).getId(), is("5cc989d1-d800-434c-b4bb-b1268499e850")); } } \ No newline at end of file