-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: testIssues in the test moduleIssues in the test modulestatus: feedback-providedFeedback has been providedFeedback has been providedtype: bugA general bugA general bug
Milestone
Description
Affects: 5.2.1.RELEASE
I would expect that in a DSL everything in a lambda block will be executed.
But if i try to assert multiple matchers in the model
block only the last one will be executed.
I didn't get any feedback about this behaviour, so i get the false impression that my code is executed, if it isn't.
Doesn't work like expected:
mockMvc.get(url)
.andExpect {
model {
attribute("foo", "foo")
attribute("bar", "bar")
}
}
Works, but is redundant code:
mockMvc.get(url)
.andExpect {
model { attribute("foo", "foo") }
model { attribute("bar", "bar") }
}
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test modulestatus: feedback-providedFeedback has been providedFeedback has been providedtype: bugA general bugA general bug