Skip to content

MockRestServiceServer should allow for an expectation to occur multiple times. [SPR-11365] #15991

@spring-projects-issues

Description

@spring-projects-issues

John Mark opened SPR-11365 and commented

Currently, the MockRestServiceServer requires that each expectation only be executed once. It would be nice to be able to say expect this and respond like this any number of times. Similar to the way the Mockito works. When setting up expectations using when().thenReturn() it can be executed any number of times.


Affects: 4.0 GA

Issue Links:

3 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions