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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription$(ClientDslProperty client) $(RegexProperty prop) aBoolean()anyDate()anyEmail()anyHex()anyTime()anyUrl()anyUuid()voidassertThat(String assertThat) booleanorg.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslPropertyinthashCode()regexProperty(Object object) voidsetAssertThat(ExecutionProperty assertThat) 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()
-
-
Method Details
-
triggeredBy
Function that needs to be executed to trigger action in the system.- Parameters:
triggeredBy- method name that triggers the message
-
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) -
getTriggeredBy
-
setTriggeredBy
-
getAssertThat
-
setAssertThat
-
anyAlphaUnicode
-
anyAlphaNumeric
-
anyNumber
-
anyInteger
-
anyPositiveInt
-
anyDouble
-
anyHex
-
aBoolean
-
anyIpAddress
-
anyHostname
-
anyEmail
-
anyUrl
-
anyHttpsUrl
-
anyUuid
-
anyDate
-
anyDateTime
-
anyTime
-
anyIso8601WithOffset
-
anyNonBlankString
-
anyNonEmptyString
-
anyOf
-
equals
-
hashCode
public int hashCode() -
toString
-