org.springframework.cloud.contract.spec.Contract.make {
- request {
- //...
-
- // In this case body will be formatted as XML.
- body equalToXml(
- '''<user><login>john</login><name>John The Contract</name></user>'''
- )
- }
-
- response {
- //...
- }
-}
-