Make MockRestServiceServer error messages more descriptive [SPR-12230] #16845
Labels
in: test
Issues in the test module
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Elnur Abdurrakhimov opened SPR-12230 and commented
Currently, when making an unexpected request to the mock server, I get an exception
java.lang.AssertionError: No further requests expected
.It's a real pain to find out which request is at fault, because there is not enough information in that exception's stacktrace.
It would be really helpful to have all the expected requests, that were already done, to be displayed. It should also display which request was expected next and which one came instead and caused the expectations to fail.
Affects: 3.2 GA
Issue Links:
Backported to: 4.0.8, 3.2.12
The text was updated successfully, but these errors were encountered: