From 3b6c01209413cda24c8598e35f4a66584d808649 Mon Sep 17 00:00:00 2001 From: Gideon Sireling Date: Thu, 23 Nov 2023 14:19:04 +0200 Subject: [PATCH] correct typo Signed-off-by: Gideon Sireling --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 170307b..6114d06 100644 --- a/README.adoc +++ b/README.adoc @@ -132,7 +132,7 @@ include::finish/inventory/src/test/java/io/openliberty/guides/inventory/Inventor The `InventoryPactIT` class contains a [hotspot=mockprovider file=0]`PactProviderRule` mock provider that mimics the HTTP responses from the `system` microservice. The [hotspot=pact file=0]`@Pact` annotation takes the name of the microservice as a parameter, which makes it easier to differentiate microservices from each other when you have multiple applications. -The [hotspot=builder file=0]`createPactServer()` method defines the minimal expected responsezfor a specific endpoint, which is known as an interaction. For each interaction, the expected request and the response are registered with the mock service by using the [hotspot=verification file=0]`@PactVerification` annotation. +The [hotspot=builder file=0]`createPactServer()` method defines the minimal expected responses for a specific endpoint, which is known as an interaction. For each interaction, the expected request and the response are registered with the mock service by using the [hotspot=verification file=0]`@PactVerification` annotation. The test sends a real request with the [hotspot=mockTest file=0]`getUrl()` method of the mock provider. The mock provider compares the actual request with the expected request and confirms whether the comparison is successful. Finally, the [hotspot=unitTest file=0]`assertEquals()` method confirms that the response is correct.