Skip to content

Commit

Permalink
docs(JUnit 4): Update README with allowing provider state generator t…
Browse files Browse the repository at this point in the history
…o fall back to the provider state parameters
  • Loading branch information
rholshausen committed Jul 11, 2024
1 parent e586656 commit 521e265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/junit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The library is available on maven central using:

* group-id = `au.com.dius.pact.provider`
* artifact-id = `junit`
* version-id = `4.1.x`
* version-id = `4.6.x`


## Overview
Expand Down Expand Up @@ -191,6 +191,7 @@ provider side, so there is no way to know what the ID would be beforehand.
There are methods on the consumer DSLs that can provider an expression that contains variables (like '/api/user/${id}'
for the path). The provider state callback can then return a map for values, and the `id` attribute from the map will
be expanded in the expression. For this to work, just make your provider state method return a Map of the values.
The injected values will fall back to the provider state parameters if the state change method does not return a value.

### Using multiple classes for the state change methods

Expand Down

0 comments on commit 521e265

Please sign in to comment.