Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockRestServiceServer should allow for an expectation to never occur. [SPR-15168] #19734

Closed
spring-issuemaster opened this issue Jan 19, 2017 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

commented Jan 19, 2017

Nedenom opened SPR-15168 and commented

There was done some nice work in #15991 to allow for an expectation to occur multiple times.

However, I still miss expect(never(), ...), so I am not able to easily verify that the service is not called for a particular case.

I did try expect(times(0)) and expect(max(0)), but this throws java.lang.IllegalArgumentException: 'count' must be >= 1.


Affects: 4.3.4

Issue Links:

  • #15991 MockRestServiceServer should allow for an expectation to occur multiple times.

Referenced from: commits bc88402, c8b0ff2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.