Skip to content

Commit

Permalink
chore: update readmes with expression marker overrides #1410
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Aug 15, 2021
1 parent e84e19c commit 4b84e68
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consumer/groovy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,3 +661,9 @@ service {
}
}
```

## Overriding the expression markers `${` and `}` (4.1.25+)

You can change the markers of the expressions using the following system properties:
- `pact.expressions.start` (default is `${`)
- `pact.expressions.end` (default is `}`)
6 changes: 6 additions & 0 deletions consumer/junit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@ You can also just use the key instead of an expression:
.valueFromProviderState('userId', 'userId', 100) // will look value using userId as the key
```

## Overriding the expression markers `${` and `}` (4.1.25+)

You can change the markers of the expressions using the following system properties:
- `pact.expressions.start` (default is `${`)
- `pact.expressions.end` (default is `}`)

## Dealing with persistent HTTP/1.1 connections (Keep Alive)

As each test will get a new mock server, connections can not be persisted between tests. HTTP clients can cache
Expand Down
6 changes: 6 additions & 0 deletions consumer/junit5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ You can also just use the key instead of an expression:
.valueFromProviderState('userId', 'userId', 100) // will look value using userId as the key
```

## Overriding the expression markers `${` and `}` (4.1.25+)

You can change the markers of the expressions using the following system properties:
- `pact.expressions.start` (default is `${`)
- `pact.expressions.end` (default is `}`)

## Using HTTPS

You can enable a HTTPS mock server by setting `https=true` on the `@PactTestFor` annotation. Note that this mock
Expand Down

0 comments on commit 4b84e68

Please sign in to comment.