diff --git a/2.0.x/multi/multi__customization.html b/2.0.x/multi/multi__customization.html index 3522c8d4ec..5b5a284ccd 100644 --- a/2.0.x/multi/multi__customization.html +++ b/2.0.x/multi/multi__customization.html @@ -173,45 +173,4 @@ following example:
Maven. </plugin>
Gradle.
classpath "com.example:beer-common:0.0.1-SNAPSHOT"-
You can now reference your classes in your DSL, as shown in the following example:
package contracts.beer.rest - -import com.example.ConsumerUtils -import com.example.ProducerUtils -import org.springframework.cloud.contract.spec.Contract - -Contract.make { - description(""" -Represents a successful scenario of getting a beer - -``` -given: - client is old enough -when: - he applies for a beer -then: - we'll grant him the beer -``` - -""") - request { - method 'POST' - url '/check' - body( - age: $(ConsumerUtils.oldEnough()) - ) - headers { - contentType(applicationJson()) - } - } - response { - status 200 - body(""" - { - "status": "${value(ProducerUtils.ok())}" - } - """) - headers { - contentType(applicationJson()) - } - } -}