You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support nested block and flat call structure with invoke method (see Kotlin in Action 11.3.3).
KPact.consumer("Some Consumer").hasPactWith("Some Provider") {
given("a certain state on the provider") {
whenever("a request for something").withPath("/hello") {
method("POST")
body("{\"name\": \"harry\"}")
} thenRespondWith {
status(200)
body("{\"hello\": \"harry\"}")
}
}
vs
KPact.consumer("Some Consumer").hasPactWith("Some Provider")
.given("a certain state on the provider").whenever("a request for something")
.withPath("/hello") {
method("POST")
body("{\"name\": \"harry\"}")
} thenRespondWith {
status(200)
body("{\"hello\": \"harry\"}")
}
}
The text was updated successfully, but these errors were encountered:
Support nested block and flat call structure with invoke method (see Kotlin in Action 11.3.3).
vs
The text was updated successfully, but these errors were encountered: