Skip to content

Commit 25a0c8f

Browse files
committed
chore(test): change a product id
1 parent e70958b commit 25a0c8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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")
@@ -71,6 +71,6 @@ public RequestResponsePact getProducts(PactDslWithProvider builder) {
7171
public void testGetProducts(MockServer mockServer) throws IOException {
7272
List<Product> products = new ProductClient().setUrl(mockServer.getUrl()).getProducts();
7373

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

0 commit comments

Comments
 (0)