org.springframework.cloud.contract.spec.Contract.make {
+ description('''
+given:
+ An input
+when:
+ Sth happens
+then:
+ Output
+''')
+ }
+diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index a13e7a43da..9900c9b330 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -659,6 +659,12 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
You can add a description to your contract that is nothing else but an arbitrary text. Example:
org.springframework.cloud.contract.spec.Contract.make {
+ description('''
+given:
+ An input
+when:
+ Sth happens
+then:
+ Output
+''')
+ }
+If you want to ignore a contract you can either set a value of ignored contracts in the plugin configuration
+or just set the ignored property on the contract itself:
org.springframework.cloud.contract.spec.Contract.make {
+ ignored()
+}
+Following methods can be called in the top-level closure of a contract definition. Request and response are mandatory, priority is optional.