Apply default ResultHandler
s before default ResultMatcher
s in MockMvc
#27225
Labels
Milestone
ResultHandler
s before default ResultMatcher
s in MockMvc
#27225
Overview
MockMvc.applyDefaultResultActions(MvcResult)
currently applies defaultResultMatcher
s before defaultResultHandler
s. Consequently, if aResultMatcher
fails, noResultHandler
will be applied.For example, in the following test, if
alwaysExpect(content().string("Boom!"))
results in an exception,alwaysDo(print(System.err))
will never be applied, and the user will never see the expected debug output to help diagnose the problem.Deliverables
ResultHandler
s are applied before defaultResultMatcher
s.The text was updated successfully, but these errors were encountered: