add event type
This commit is contained in:
@@ -32,6 +32,7 @@ then:
|
|||||||
sentTo 'eventTopic'
|
sentTo 'eventTopic'
|
||||||
// the body of the output message
|
// the body of the output message
|
||||||
body(
|
body(
|
||||||
|
eventType: "ProductChanged",
|
||||||
productId: 1,
|
productId: 1,
|
||||||
productName: "TV",
|
productName: "TV",
|
||||||
productPrice: 10000,
|
productPrice: 10000,
|
||||||
@@ -39,6 +40,7 @@ then:
|
|||||||
imageUrl: "testUrl"
|
imageUrl: "testUrl"
|
||||||
)
|
)
|
||||||
bodyMatchers {
|
bodyMatchers {
|
||||||
|
jsonPath('$.eventType', byRegex("ProductChanged"))
|
||||||
jsonPath('$.productId', byRegex(nonEmpty()).asLong())
|
jsonPath('$.productId', byRegex(nonEmpty()).asLong())
|
||||||
jsonPath('$.productName', byRegex(nonEmpty()).asString())
|
jsonPath('$.productName', byRegex(nonEmpty()).asString())
|
||||||
jsonPath('$.productPrice', byRegex(nonEmpty()).asLong())
|
jsonPath('$.productPrice', byRegex(nonEmpty()).asLong())
|
||||||
|
|||||||
Reference in New Issue
Block a user