Skip to content

Commit

Permalink
Update documentation to reflect collection variable matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefzdz committed Jun 8, 2016
1 parent 7de1563 commit 2431c9d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/java/priming-prepared-statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,22 @@ outcomes as they will overwrite each other.
If none of the outcomes match then a RuntimeException will currently be thrown. This will be replaced with default behaviour of returning an empty successful result.
Collections are not currently supported for variable matching.
Collections can also be used for variable matching:
```
MultiPrimeRequest prime = MultiPrimeRequest.request()
.withWhen(when()
.withQuery("select * from person where nicknames = ?"))
.withThen(then()
.withVariableTypes(list(TEXT))
.withOutcomes(
outcome(match().withVariableMatchers(exactMatch().withMatcher(Lists.newArrayList("Zen", "Nez")).build()), action().withResult(Result.success))
)
)
.build();
primingClient.multiPrime(prime);
```
#### Priming errors
Expand Down

0 comments on commit 2431c9d

Please sign in to comment.