diff --git a/docs/consumer.md b/docs/consumer.md index c1024c093..0a6378166 100644 --- a/docs/consumer.md +++ b/docs/consumer.md @@ -183,7 +183,7 @@ Two builder methods exist for binary/file payloads: - `WithBinaryBody` accepts a `[]byte` for matching on binary payloads (e.g. images) - `WithMultipartFile` accepts a path to file from the file system, and the multipart boundary -### Provider States +### Managing Test Data (using Provider States) There are several ways to define a provider state: diff --git a/docs/provider.md b/docs/provider.md index 8485fdc39..983afbf42 100644 --- a/docs/provider.md +++ b/docs/provider.md @@ -46,7 +46,7 @@ func TestV3HTTPProvider(t *testing.T) { } ``` -### Provider States +### Managing Data (Provider States) If you have defined any states (as denoted by a `Given()`) in your consumer tests, the `Verifier` can put the provider into the correct state prior to sending the actual request for validation. For example, the provider can use the state to mock away certain database queries. To support this, set up a `StateHandler` for each state using hooks on the `StateHandlers` property. Here is an example: