Class Input
java.lang.Object
org.springframework.cloud.contract.spec.internal.Common
org.springframework.cloud.contract.spec.internal.Input
Represents an input for messaging. The input can be a message or some action inside the
application.
- Since:
- 1.0.0
- Author:
- Marcin Grzejszczak, Tim Ysewyn
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription$(ClientDslProperty client) $(RegexProperty prop) aBoolean()anyDate()anyEmail()anyHex()anyTime()anyUrl()anyUuid()voidassertThat(String assertThat) voidbodyMatchers(groovy.lang.Closure consumer) The stub matchers part of the contract.voidbodyMatchers(Consumer<BodyMatchers> consumer) The stub matchers part of the contract.booleanorg.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslPropertyinthashCode()messageBody(Object bodyAsValue) voidmessageFrom(String messageFrom) Name of a destination from which message would come to trigger action in the system.voidmessageFrom(DslProperty messageFrom) Name of a destination from which message would come to trigger action in the system.voidmessageHeaders(groovy.lang.Closure consumer) The message headers part of the contract.voidmessageHeaders(Consumer<Headers> consumer) The message headers part of the contract.regexProperty(Object object) voidsetAssertThat(ExecutionProperty assertThat) voidsetBodyMatchers(BodyMatchers bodyMatchers) voidsetMessageBody(Input.BodyType messageBody) voidsetMessageFrom(DslProperty<String> messageFrom) voidsetMessageHeaders(Headers messageHeaders) voidsetProperty(org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty property) voidsetTriggeredBy(ExecutionProperty triggeredBy) toString()voidtriggeredBy(String triggeredBy) Function that needs to be executed to trigger action in the system.value(ClientDslProperty client) value(RegexProperty prop) Methods inherited from class org.springframework.cloud.contract.spec.internal.Common
$, $, $, $, 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, value
-
Constructor Details
-
Input
public Input() -
Input
-
-
Method Details
-
messageFrom
Name of a destination from which message would come to trigger action in the system.- Parameters:
messageFrom- message destination
-
messageFrom
Name of a destination from which message would come to trigger action in the system.- Parameters:
messageFrom- message destination
-
triggeredBy
Function that needs to be executed to trigger action in the system.- Parameters:
triggeredBy- method name that triggers the message
-
messageBody
-
value
-
value
-
$
-
$
-
regexProperty
- Overrides:
regexPropertyin classCommon
-
assertThat
-
getProperty
public org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty getProperty() -
setProperty
public void setProperty(org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty property) -
getMessageFrom
-
setMessageFrom
-
getTriggeredBy
-
setTriggeredBy
-
getMessageHeaders
-
setMessageHeaders
-
getMessageBody
-
setMessageBody
-
getAssertThat
-
setAssertThat
-
getBodyMatchers
-
setBodyMatchers
-
anyAlphaUnicode
-
anyAlphaNumeric
-
anyNumber
-
anyInteger
-
anyPositiveInt
-
anyDouble
-
anyHex
-
aBoolean
-
anyIpAddress
-
anyHostname
-
anyEmail
-
anyUrl
-
anyHttpsUrl
-
anyUuid
-
anyDate
-
anyDateTime
-
anyTime
-
anyIso8601WithOffset
-
anyNonBlankString
-
anyNonEmptyString
-
anyOf
-
messageHeaders
The message headers part of the contract.- Parameters:
consumer- function to manipulate the message headers
-
bodyMatchers
The stub matchers part of the contract.- Parameters:
consumer- function to manipulate the message headers
-
messageHeaders
The message headers part of the contract.- Parameters:
consumer- function to manipulate the message headers
-
bodyMatchers
The stub matchers part of the contract.- Parameters:
consumer- function to manipulate the message headers
-
equals
-
hashCode
public int hashCode() -
toString
-