Skip to content

Make MockRestServiceServer error messages more descriptive [SPR-12230] #16845

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions