public class OutputMessage extends Common
| Constructor and Description |
|---|
OutputMessage() |
OutputMessage(OutputMessage outputMessage) |
$, $, $, $, aDouble, alphaNumeric, anInteger, anyBoolean, assertThatSidesMatch, c, client, consumer, convertObjectsToDslProperties, convertObjectsToDslProperties, email, execute, file, file, fileAsBytes, hostname, httpsUrl, ipAddress, iso8601WithOffset, isoDate, isoDateTime, isoTime, named, named, named, nonBlank, nonEmpty, number, onlyAlphaUnicode, optional, p, positiveInt, producer, regex, regex, regex, server, stub, test, toDslProperty, toDslProperty, toDslProperty, toDslProperty, url, uuid, value, value, value, valuepublic OutputMessage()
public OutputMessage(OutputMessage outputMessage)
public void sentTo(String sentTo)
public void sentTo(DslProperty sentTo)
public void body(Object bodyAsValue)
public void body(DslProperty bodyAsValue)
public void assertThat(String assertThat)
public DslProperty value(ServerDslProperty serverDslProperty)
public DslProperty $(ServerDslProperty property)
public DslProperty $(Pattern pattern)
public DslProperty $(RegexProperty pattern)
public DslProperty value(RegexProperty pattern)
public DslProperty $(OptionalProperty property)
public RegexProperty regexProperty(Object object)
regexProperty in class Commonpublic org.springframework.cloud.contract.spec.internal.OutputMessage.ServerPatternValueDslProperty getProperty()
public void setProperty(org.springframework.cloud.contract.spec.internal.OutputMessage.ServerPatternValueDslProperty property)
public DslProperty<String> getSentTo()
public void setSentTo(DslProperty<String> sentTo)
public Headers getHeaders()
public void setHeaders(Headers headers)
public DslProperty getBody()
public void setBody(DslProperty body)
public ExecutionProperty getAssertThat()
public void setAssertThat(ExecutionProperty assertThat)
public ResponseBodyMatchers getBodyMatchers()
public void setBodyMatchers(ResponseBodyMatchers bodyMatchers)
public ServerDslProperty anyAlphaUnicode()
public ServerDslProperty anyAlphaNumeric()
public ServerDslProperty anyNumber()
public ServerDslProperty anyInteger()
public ServerDslProperty anyPositiveInt()
public ServerDslProperty anyDouble()
public ServerDslProperty anyHex()
public ServerDslProperty aBoolean()
public ServerDslProperty anyIpAddress()
public ServerDslProperty anyHostname()
public ServerDslProperty anyEmail()
public ServerDslProperty anyUrl()
public ServerDslProperty anyHttpsUrl()
public ServerDslProperty anyUuid()
public ServerDslProperty anyDate()
public ServerDslProperty anyDateTime()
public ServerDslProperty anyTime()
public ServerDslProperty anyIso8601WithOffset()
public ServerDslProperty anyNonBlankString()
public ServerDslProperty anyNonEmptyString()
public ServerDslProperty anyOf(String... values)
public void headers(Consumer<Headers> consumer)
consumer - function to manipulate the message headerspublic void bodyMatchers(Consumer<ResponseBodyMatchers> consumer)
consumer - function to manipulate the body matcherspublic void headers(@DelegatesTo(value=Headers.class) groovy.lang.Closure consumer)
consumer - function to manipulate the message headerspublic void bodyMatchers(@DelegatesTo(value=ResponseBodyMatchers.class) groovy.lang.Closure consumer)
consumer - function to manipulate the body matchersCopyright © 2016–2020 Spring. All rights reserved.