Fixed messaging docs

This commit is contained in:
Marcin Grzejszczak
2022-11-15 17:40:10 +01:00
parent 190859e88b
commit 48a40f25b4
2 changed files with 3 additions and 2 deletions

View File

@@ -526,7 +526,7 @@ include::{tests_path}/spring-cloud-contract-stub-runner-stream/src/test/groovy/o
Now consider the following Spring Cloud Stream function configuration:
====
[source,yaml]
[source,groovy]
----
include::{tests_path}/spring-cloud-contract-stub-runner-stream/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/stream/StreamStubRunnerSpec.groovy[tags=setup,indent=0]
----

View File

@@ -153,7 +153,7 @@ class StreamStubRunnerSpec {
// Contract from my service that is processing the input message and sending out another message (I'm a producer)
Contract myDsl =
// tag::sample_dsl[]
// tag::sample_producer_dsl[]
Contract.make {
label 'return_book_2'
input { triggeredBy('gotAMessageFromFunction()') }
@@ -163,6 +163,7 @@ class StreamStubRunnerSpec {
headers { header('BOOK-NAME', 'foo') }
}
}
// end::sample_producer_dsl[]
// tag::setup[]
@ImportAutoConfiguration(TestChannelBinderConfiguration.class)