Skip to content

Commit

Permalink
Merge pull request #72 from accursoft/patch-1
Browse files Browse the repository at this point in the history
correct typo
  • Loading branch information
gkwan-ibm authored Mar 5, 2024
2 parents 53f7f50 + 3b6c012 commit 4a7419d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 4a7419d

Please sign in to comment.