Skip to content

Commit ed0df65

Browse files
author
Ronald Holshausen
committedOct 27, 2019
fix: correct spring test readme and comment #963
1 parent 00168b1 commit ed0df65

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎provider/pact-jvm-provider-spring/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ is set with the version of your provider.
7575
}
7676
```
7777

78-
## Using a Spring runner
78+
## Using Spring runners
7979

80-
You can use `SpringRestPactRunner` instead of the default Pact runner to use the Spring test annotations. This will
81-
allow you to inject or mock spring beans.
80+
You can use `SpringRestPactRunner` or `SpringMessagePactRunner` instead of the default Pact runner to use the Spring test annotations. This will
81+
allow you to inject or mock spring beans. `SpringRestPactRunner` is for restful webapps and `SpringMessagePactRunner` is
82+
for async message tests.
8283

8384
For example:
8485

‎provider/pact-jvm-provider-spring/src/main/kotlin/au/com/dius/pact/provider/spring/SpringMessagePactRunner.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.statements.RunAfterTestClassCallb
1313
import org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
1414

1515
/**
16-
* Pact runner for REST providers that boots up the spring context
16+
* Pact runner for Async message providers that boots up the spring context
1717
*/
1818
open class SpringMessagePactRunner(clazz: Class<*>) : MessagePactRunner<Message>(clazz) {
1919

0 commit comments

Comments
 (0)