diff --git a/1.1.x/multi/multi__stub_runner_for_messaging.html b/1.1.x/multi/multi__stub_runner_for_messaging.html index b1dcccaeb4..e41cb611d0 100644 --- a/1.1.x/multi/multi__stub_runner_for_messaging.html +++ b/1.1.x/multi/multi__stub_runner_for_messaging.html @@ -1,6 +1,9 @@
-Stub Runner has the functionality to run the published stubs in memory. It can integrate with the following frameworks out of the box
It also provides points of entry to integrate with any other solution on the market.
To trigger a message it’s enough to use the StubTrigger interface:
package org.springframework.cloud.contract.stubrunner; +6. Stub Runner for Messaging Stub Runner has the functionality to run the published stubs in memory. It can integrate with the following frameworks out of the box
- Spring Integration
- Spring Cloud Stream
- Apache Camel
- Spring AMQP
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=falseandstubrunner.integration.enabled=false. +That way the only remaining framework is Spring AMQP.To trigger a message it’s enough to use the
StubTriggerinterface:package org.springframework.cloud.contract.stubrunner; import java.util.Collection; import java.util.Map; @@ -43,7 +46,7 @@ }For convenience the
StubFinderinterface extendsStubTriggerso it’s enough to use only one in your tests.
StubTriggergives you the following options to trigger a message:stubFinder.trigger('org.springframework.cloud.contract.verifier.stubs:camelService', 'return_book_1')Spring Cloud Contract Verifier Stub Runner’s messaging module gives you an easy way to integrate with Apache Camel. For the provided artifacts it will automatically download the stubs and register the required 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.Let us assume that we have the following Maven repository with a deployed stubs for the +Remember to annotate your test class with
@AutoConfigureStubRunner.If you need to disable this functionality just pass
stubrunner.camel.enabled=falseproperty.Let us assume that we have the following Maven repository with a deployed stubs for the
camelServiceapplication.└── .m2 └── repository └── io @@ -101,7 +104,7 @@ assertThatBodyContainsBookNameFoo(receivedMessage.in.body) receivedMessage.in.headers.get('BOOK-NAME') == 'foo'Spring Cloud Contract Verifier Stub Runner’s messaging module gives you an easy way to integrate with Spring Integration. For the provided artifacts it will automatically download the stubs and register the required 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.Let us assume that we have the following Maven repository with a deployed stubs for the +Remember to annotate your test class with
@AutoConfigureStubRunner.If you need to disable this functionality just pass
stubrunner.integration.enabled=falseproperty.Let us assume that we have the following Maven repository with a deployed stubs for the
integrationServiceapplication.└── .m2 └── repository └── io @@ -188,7 +191,7 @@ channel name.Gradle.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.Let us assume that we have the following Maven repository with a deployed stubs for the +Remember to annotate your test class with
@AutoConfigureStubRunner.If you need to disable this functionality just pass
stubrunner.stream.enabled=falseproperty.Let us assume that we have the following Maven repository with a deployed stubs for the
streamServiceapplication.└── .m2 └── repository └── io @@ -259,7 +262,9 @@ Message listeners on the other side are bound to queues. Bindings connect an exc If message contracts are triggered the Spring AMQP stub runner integration will look for bindings on the application context that match this exchange. Then it collects the queues from the Spring exchanges and tries to find messages listeners bound to these queues. 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.Let us assume that we have the following Maven repository with a deployed stubs for the +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=falseandstubrunner.integration.enabled=false+propertiesLet us assume that we have the following Maven repository with a deployed stubs for the
spring-cloud-contract-amqp-testapplication.└── .m2 └── repository └── com diff --git a/1.1.x/multi/multi_spring-cloud-contract.html b/1.1.x/multi/multi_spring-cloud-contract.html index 2613e09b83..a5c2d64f29 100644 --- a/1.1.x/multi/multi_spring-cloud-contract.html +++ b/1.1.x/multi/multi_spring-cloud-contract.html @@ -1,3 +1,3 @@ -Spring Cloud Contract \ No newline at end of file +Table of Contents
- 1. Spring Cloud Contract
- 2. Spring Cloud Contract Verifier Introduction
- 3. Spring Cloud Contract Verifier Setup
- 3.1. Gradle Project
- 3.1.1. Prerequisites
- 3.1.2. Add gradle plugin with dependencies
- 3.1.3. Gradle and Rest Assured 3.0
- 3.1.4. Snapshot versions for Gradle
- 3.1.5. Add stubs
- 3.1.6. Run plugin
- 3.1.7. Default setup
- 3.1.8. Configure plugin
- 3.1.9. Configuration options
- 3.1.10. Single base class for all tests
- 3.1.11. Different base classes for contracts
- 3.1.12. Invoking generated tests
- 3.1.13. Spring Cloud Contract Verifier on consumer side
- 3.2. Using in your Maven project
- 3.2.1. Add maven plugin
- 3.2.2. Maven and Rest Assured 3.0
- 3.2.3. Snapshot versions for Maven
- 3.2.4. Add stubs
- 3.2.5. Run plugin
- 3.2.6. Configure plugin
- 3.2.7. Important configuration options
- 3.2.8. Single base class for all tests
- 3.2.9. Different base classes for contracts
- 3.2.10. Invoking generated tests
- 3.2.11. FAQ with Maven Plugin
- 3.2.12. Maven Plugin and STS
- 3.2.13. Spring Cloud Contract Verifier on consumer side
- 3.3. Scenarios
- 3.4. Stubs and transitive dependencies
- 4. Spring Cloud Contract Verifier Messaging
- 5. Spring Cloud Contract Stub Runner
- 6. Stub Runner for Messaging
- 7. Contract DSL
- 8. Customization
- 9. Pluggable architecture
- 10. Spring Cloud Contract WireMock
- 11. Links
Spring Cloud Contract \ No newline at end of file diff --git a/1.1.x/single/spring-cloud-contract.html b/1.1.x/single/spring-cloud-contract.html index b07be9dde8..1cd33c8c27 100644 --- a/1.1.x/single/spring-cloud-contract.html +++ b/1.1.x/single/spring-cloud-contract.html @@ -1,6 +1,6 @@ -Table of Contents
- 1. Spring Cloud Contract
- 2. Spring Cloud Contract Verifier Introduction
- 3. Spring Cloud Contract Verifier Setup
- 3.1. Gradle Project
- 3.1.1. Prerequisites
- 3.1.2. Add gradle plugin with dependencies
- 3.1.3. Gradle and Rest Assured 3.0
- 3.1.4. Snapshot versions for Gradle
- 3.1.5. Add stubs
- 3.1.6. Run plugin
- 3.1.7. Default setup
- 3.1.8. Configure plugin
- 3.1.9. Configuration options
- 3.1.10. Single base class for all tests
- 3.1.11. Different base classes for contracts
- 3.1.12. Invoking generated tests
- 3.1.13. Spring Cloud Contract Verifier on consumer side
- 3.2. Using in your Maven project
- 3.2.1. Add maven plugin
- 3.2.2. Maven and Rest Assured 3.0
- 3.2.3. Snapshot versions for Maven
- 3.2.4. Add stubs
- 3.2.5. Run plugin
- 3.2.6. Configure plugin
- 3.2.7. Important configuration options
- 3.2.8. Single base class for all tests
- 3.2.9. Different base classes for contracts
- 3.2.10. Invoking generated tests
- 3.2.11. FAQ with Maven Plugin
- 3.2.12. Maven Plugin and STS
- 3.2.13. Spring Cloud Contract Verifier on consumer side
- 3.3. Scenarios
- 3.4. Stubs and transitive dependencies
- 4. Spring Cloud Contract Verifier Messaging
- 5. Spring Cloud Contract Stub Runner
- 6. Stub Runner for Messaging
- 7. Contract DSL
- 8. Customization
- 9. Pluggable architecture
- 10. Spring Cloud Contract WireMock
- 11. Links
Spring Cloud Contract Table of Contents
- 1. Spring Cloud Contract
- 2. Spring Cloud Contract Verifier Introduction
- 3. Spring Cloud Contract Verifier Setup
- 3.1. Gradle Project
- 3.1.1. Prerequisites
- 3.1.2. Add gradle plugin with dependencies
- 3.1.3. Gradle and Rest Assured 3.0
- 3.1.4. Snapshot versions for Gradle
- 3.1.5. Add stubs
- 3.1.6. Run plugin
- 3.1.7. Default setup
- 3.1.8. Configure plugin
- 3.1.9. Configuration options
- 3.1.10. Single base class for all tests
- 3.1.11. Different base classes for contracts
- 3.1.12. Invoking generated tests
- 3.1.13. Spring Cloud Contract Verifier on consumer side
- 3.2. Using in your Maven project
- 3.2.1. Add maven plugin
- 3.2.2. Maven and Rest Assured 3.0
- 3.2.3. Snapshot versions for Maven
- 3.2.4. Add stubs
- 3.2.5. Run plugin
- 3.2.6. Configure plugin
- 3.2.7. Important configuration options
- 3.2.8. Single base class for all tests
- 3.2.9. Different base classes for contracts
- 3.2.10. Invoking generated tests
- 3.2.11. FAQ with Maven Plugin
- 3.2.12. Maven Plugin and STS
- 3.2.13. Spring Cloud Contract Verifier on consumer side
- 3.3. Scenarios
- 3.4. Stubs and transitive dependencies
- 4. Spring Cloud Contract Verifier Messaging
- 5. Spring Cloud Contract Stub Runner
- 6. Stub Runner for Messaging
- 7. Contract DSL
- 8. Customization
- 9. Pluggable architecture
- 10. Spring Cloud Contract WireMock
- 11. Links
Documentation Authors: Adam Dudczak, Mathias Düsterhöft, Marcin Grzejszczak, Dennis Kieselhorst, Jakub Kubryński, Karol Lassak, +
Spring Cloud Contract Table of Contents
- 1. Spring Cloud Contract
- 2. Spring Cloud Contract Verifier Introduction
- 3. Spring Cloud Contract Verifier Setup
- 3.1. Gradle Project
- 3.1.1. Prerequisites
- 3.1.2. Add gradle plugin with dependencies
- 3.1.3. Gradle and Rest Assured 3.0
- 3.1.4. Snapshot versions for Gradle
- 3.1.5. Add stubs
- 3.1.6. Run plugin
- 3.1.7. Default setup
- 3.1.8. Configure plugin
- 3.1.9. Configuration options
- 3.1.10. Single base class for all tests
- 3.1.11. Different base classes for contracts
- 3.1.12. Invoking generated tests
- 3.1.13. Spring Cloud Contract Verifier on consumer side
- 3.2. Using in your Maven project
- 3.2.1. Add maven plugin
- 3.2.2. Maven and Rest Assured 3.0
- 3.2.3. Snapshot versions for Maven
- 3.2.4. Add stubs
- 3.2.5. Run plugin
- 3.2.6. Configure plugin
- 3.2.7. Important configuration options
- 3.2.8. Single base class for all tests
- 3.2.9. Different base classes for contracts
- 3.2.10. Invoking generated tests
- 3.2.11. FAQ with Maven Plugin
- 3.2.12. Maven Plugin and STS
- 3.2.13. Spring Cloud Contract Verifier on consumer side
- 3.3. Scenarios
- 3.4. Stubs and transitive dependencies
- 4. Spring Cloud Contract Verifier Messaging
- 5. Spring Cloud Contract Stub Runner
- 6. Stub Runner for Messaging
- 7. Contract DSL
- 8. Customization
- 9. Pluggable architecture
- 10. Spring Cloud Contract WireMock
- 11. Links
Documentation Authors: Adam Dudczak, Mathias Düsterhöft, Marcin Grzejszczak, Dennis Kieselhorst, Jakub Kubryński, Karol Lassak, Olga Maciaszek-Sharma, Mariusz Smykuła, Dave Syer
1.1.4.BUILD-SNAPSHOT
What you always need is confidence in pushing new features into a new application or service in a distributed system. This project provides support for Consumer Driven Contracts and service schemas in Spring applications, covering a range of options for writing tests, publishing them as assets, asserting that a contract is kept by producers @@ -1694,7 +1694,10 @@ transitions from digit to letter and vice versa delimit the version segments. De recognized and treated specially: "alpha" = "a" < "beta" = "b" < "milestone" = "m" < "cr" = "rc" < "snapshot" < "final" = "ga" < "sp". All of those well-known qualifiers are considered smaller/older than other strings. An empty segment/string is equivalent to 0.
In addition to the above mentioned qualifiers, the tokens "min" and "max" may be used as final version segment to denote the smallest/greatest version having a given prefix. For example, "1.2.min" denotes the smallest version in the 1.2 line, "1.2.max" denotes the greatest version in the 1.2 line. A version range of the form "[M.N.*]" is short for "[M.N.min, M.N.max]".
Numbers and strings are considered incomparable against each other. Where version segments of different kind would collide, comparison will instead assume that the previous -segments are padded with trailing 0 or "ga" segments, respectively, until the kind mismatch is resolved, e.g. "1-alpha" = "1.0.0-alpha" < "1.0.1-ga" = "1.0.1".
Stub Runner has the functionality to run the published stubs in memory. It can integrate with the following frameworks out of the box
- Spring Integration
- Spring Cloud Stream
- Apache Camel
- Spring AMQP
It also provides points of entry to integrate with any other solution on the market.
To trigger a message it’s enough to use the
StubTriggerinterface:package org.springframework.cloud.contract.stubrunner; +segments are padded with trailing 0 or "ga" segments, respectively, until the kind mismatch is resolved, e.g. "1-alpha" = "1.0.0-alpha" < "1.0.1-ga" = "1.0.1".Stub Runner has the functionality to run the published stubs in memory. It can integrate with the following frameworks out of the box
- Spring Integration
- Spring Cloud Stream
- Apache Camel
- Spring AMQP
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=falseandstubrunner.integration.enabled=false. +That way the only remaining framework is Spring AMQP.To trigger a message it’s enough to use the
StubTriggerinterface:package org.springframework.cloud.contract.stubrunner; import java.util.Collection; import java.util.Map; @@ -1737,7 +1740,7 @@ segments are padded with trailing 0 or "ga" segments, respectively, until the ki }For convenience the
StubFinderinterface extendsStubTriggerso it’s enough to use only one in your tests.
StubTriggergives you the following options to trigger a message:stubFinder.trigger('org.springframework.cloud.contract.verifier.stubs:camelService', 'return_book_1')Spring Cloud Contract Verifier Stub Runner’s messaging module gives you an easy way to integrate with Apache Camel. For the provided artifacts it will automatically download the stubs and register the required 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.Let us assume that we have the following Maven repository with a deployed stubs for the +Remember to annotate your test class with
@AutoConfigureStubRunner.If you need to disable this functionality just pass
stubrunner.camel.enabled=falseproperty.Let us assume that we have the following Maven repository with a deployed stubs for the
camelServiceapplication.└── .m2 └── repository └── io @@ -1795,7 +1798,7 @@ assertThatBodyContainsBookNameFoo(receivedMessage.in.body) receivedMessage.in.headers.get('BOOK-NAME') == 'foo'Spring Cloud Contract Verifier Stub Runner’s messaging module gives you an easy way to integrate with Spring Integration. For the provided artifacts it will automatically download the stubs and register the required 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.Let us assume that we have the following Maven repository with a deployed stubs for the +Remember to annotate your test class with
@AutoConfigureStubRunner.If you need to disable this functionality just pass
stubrunner.integration.enabled=falseproperty.Let us assume that we have the following Maven repository with a deployed stubs for the
integrationServiceapplication.└── .m2 └── repository └── io @@ -1882,7 +1885,7 @@ channel name.Gradle.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.Let us assume that we have the following Maven repository with a deployed stubs for the +Remember to annotate your test class with
@AutoConfigureStubRunner.If you need to disable this functionality just pass
stubrunner.stream.enabled=falseproperty.Let us assume that we have the following Maven repository with a deployed stubs for the
streamServiceapplication.└── .m2 └── repository └── io @@ -1953,7 +1956,9 @@ Message listeners on the other side are bound to queues. Bindings connect an exc If message contracts are triggered the Spring AMQP stub runner integration will look for bindings on the application context that match this exchange. Then it collects the queues from the Spring exchanges and tries to find messages listeners bound to these queues. 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.Let us assume that we have the following Maven repository with a deployed stubs for the +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=falseandstubrunner.integration.enabled=false+propertiesLet us assume that we have the following Maven repository with a deployed stubs for the
spring-cloud-contract-amqp-testapplication.└── .m2 └── repository └── com diff --git a/1.1.x/spring-cloud-contract-maven-plugin/checkstyle.html b/1.1.x/spring-cloud-contract-maven-plugin/checkstyle.html index 74ffe24d2c..97636cc3af 100644 --- a/1.1.x/spring-cloud-contract-maven-plugin/checkstyle.html +++ b/1.1.x/spring-cloud-contract-maven-plugin/checkstyle.html @@ -1,13 +1,13 @@ - +Spring Cloud Contract Maven Plugin – Checkstyle Results @@ -146,7 +146,7 @@