From af9d46b65d9cfbb24e2d72a4c544d7d18a0627db Mon Sep 17 00:00:00 2001
From: buildmaster
Consider the following contract:
or }
If you do it this way:
/my-context-path/url)./my-context-path/url).The DSL for messaging looks a little bit different than the one that focuses on HTTP. The -following sections explain the differences:
The output message can be triggered by calling a method (such as a Scheduler when a was
+following sections explain the differences:
The output message can be triggered by calling a method (such as a Scheduler when a was
started and a message was sent), as shown in the following example:
def dsl = Contract.make {
// Human readable description
description 'Some description'
@@ -1129,7 +1129,10 @@ parts):Contract.make {
bookName: 'foo'
])
}
-}You can define multiple contracts in one file. Such a contract might resemble the +}
You can define multiple contracts in one file. Such a contract might resemble the following example:
import org.springframework.cloud.contract.spec.Contract [ diff --git a/multi/multi_spring-cloud-contract.html b/multi/multi_spring-cloud-contract.html index f2a22280f8..c5c9c65e4b 100644 --- a/multi/multi_spring-cloud-contract.html +++ b/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 2.0
- 3.1.4. Snapshot Versions for Gradle
- 3.1.5. Add stubs
- 3.1.6. Run the 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 the Consumer Side
- 3.2. Maven Project
- 3.2.1. Add maven plugin
- 3.2.2. Maven and Rest Assured 2.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. 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. Maven Plugin and STS
- 3.2.12. Spring Cloud Contract Verifier on the Consumer Side
- 3.3. Stubs and Transitive Dependencies
- 3.4. Scenarios
- 4. Spring Cloud Contract Verifier Messaging
- 5. Spring Cloud Contract Stub Runner
- 6. Stub Runner for Messaging
- 7. Contract DSL
- 8. Customization
- 9. Using the Pluggable Architecture
- 10. Spring Cloud Contract WireMock
- 11. Migrations
- 12. 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 2.0
- 3.1.4. Snapshot Versions for Gradle
- 3.1.5. Add stubs
- 3.1.6. Run the 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 the Consumer Side
- 3.2. Maven Project
- 3.2.1. Add maven plugin
- 3.2.2. Maven and Rest Assured 2.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. 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. Maven Plugin and STS
- 3.2.12. Spring Cloud Contract Verifier on the Consumer Side
- 3.3. Stubs and Transitive Dependencies
- 3.4. Scenarios
- 4. Spring Cloud Contract Verifier Messaging
- 5. Spring Cloud Contract Stub Runner
- 6. Stub Runner for Messaging
- 7. Contract DSL
- 8. Customization
- 9. Using the Pluggable Architecture
- 10. Spring Cloud Contract WireMock
- 11. Migrations
- 12. Links