Adding note in the docs about Stubrunner and messaging; fixes #407
This commit is contained in:
@@ -9,6 +9,11 @@ Stub Runner has the functionality to run the published stubs in memory. It can i
|
||||
|
||||
It also provides points of entry to integrate with any other solution on the market.
|
||||
|
||||
IMPORTANT: If you have multiple frameworks on the classpath Stub Runner will need to
|
||||
define which one should be used. Let's assume that you have both AMQP, Spring Cloud Stream and Spring Integration
|
||||
on the classpath. Then you need to set `stubrunner.stream.enabled=false` and `stubrunner.integration.enabled=false`.
|
||||
That way the only remaining framework is Spring AMQP.
|
||||
|
||||
=== Stub triggering
|
||||
|
||||
To trigger a message it's enough to use the `StubTrigger` interface:
|
||||
|
||||
@@ -21,6 +21,10 @@ The message is triggered to all matching message listeners.
|
||||
It's enough to have both Spring AMQP and Spring Cloud Contract Stub Runner on the classpath and set the property `stubrunner.amqp.enabled=true`.
|
||||
Remember to annotate your test class with `@AutoConfigureStubRunner`.
|
||||
|
||||
IMPORTANT: If you already have Stream and Integration on the classpath you need
|
||||
to disable them explicitly via `stubrunner.stream.enabled=false` and `stubrunner.integration.enabled=false`
|
||||
properties
|
||||
|
||||
==== Examples
|
||||
|
||||
===== Stubs structure
|
||||
|
||||
@@ -12,6 +12,10 @@ routes.
|
||||
It's enough to have both Apache Camel and Spring Cloud Contract Stub Runner on classpath.
|
||||
Remember to annotate your test class with `@AutoConfigureStubRunner`.
|
||||
|
||||
==== Disabling the functionality
|
||||
|
||||
If you need to disable this functionality just pass `stubrunner.camel.enabled=false` property.
|
||||
|
||||
==== Examples
|
||||
|
||||
===== Stubs structure
|
||||
|
||||
@@ -12,6 +12,10 @@ routes.
|
||||
It's enough to have both Spring Integration and Spring Cloud Contract Stub Runner on classpath.
|
||||
Remember to annotate your test class with `@AutoConfigureStubRunner`.
|
||||
|
||||
==== Disabling the functionality
|
||||
|
||||
If you need to disable this functionality just pass `stubrunner.integration.enabled=false` property.
|
||||
|
||||
==== Examples
|
||||
|
||||
===== Stubs structure
|
||||
|
||||
@@ -32,6 +32,10 @@ testCompile "org.springframework.cloud:spring-cloud-stream-test-support"
|
||||
It's enough to have both Spring Cloud Stream and Spring Cloud Contract Stub Runner on classpath.
|
||||
Remember to annotate your test class with `@AutoConfigureStubRunner`.
|
||||
|
||||
==== Disabling the functionality
|
||||
|
||||
If you need to disable this functionality just pass `stubrunner.stream.enabled=false` property.
|
||||
|
||||
==== Examples
|
||||
|
||||
===== Stubs structure
|
||||
|
||||
Reference in New Issue
Block a user