Remove infix qualifier from ResultActionsDsl methods
The infix form limits the extensibility of the API and prevents calling `andReturn()`. See gh-1951
This commit is contained in:
@@ -12,7 +12,7 @@ class ResultActionsDsl(private val actions: ResultActions) {
|
||||
* Provide access to [MockMvcResultMatchersDsl] Kotlin DSL.
|
||||
* @see MockMvcResultMatchersDsl.match
|
||||
*/
|
||||
infix fun andExpect(dsl: MockMvcResultMatchersDsl.() -> Unit): ResultActionsDsl {
|
||||
fun andExpect(dsl: MockMvcResultMatchersDsl.() -> Unit): ResultActionsDsl {
|
||||
MockMvcResultMatchersDsl(actions).dsl()
|
||||
return this
|
||||
}
|
||||
@@ -21,7 +21,7 @@ class ResultActionsDsl(private val actions: ResultActions) {
|
||||
* Provide access to [MockMvcResultHandlersDsl] Kotlin DSL.
|
||||
* @see MockMvcResultHandlersDsl.handle
|
||||
*/
|
||||
infix fun andDo(dsl: MockMvcResultHandlersDsl.() -> Unit): ResultActionsDsl {
|
||||
fun andDo(dsl: MockMvcResultHandlersDsl.() -> Unit): ResultActionsDsl {
|
||||
MockMvcResultHandlersDsl(actions).dsl()
|
||||
return this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user