Skip to content

Add InvocationOnMock.getInvocationCount() for stateful Answers#3825

Open
etrandafir93 wants to merge 1 commit into
mockito:mainfrom
etrandafir93:3824-invocations_on_mock_count
Open

Add InvocationOnMock.getInvocationCount() for stateful Answers#3825
etrandafir93 wants to merge 1 commit into
mockito:mainfrom
etrandafir93:3824-invocations_on_mock_count

Conversation

@etrandafir93

Copy link
Copy Markdown

Fixes #3824

As discussed in #3824, I raised a PR to add InvocationOnMock::getInvocationCount — small addition that lets Answer implementations verify how many times the same call has already happened.

Checklist

  • Read the contributing guide
  • PR should be motivated, i.e. what does it fix, why, and if relevant how
  • If possible / relevant include an example in the description, that could help all readers
    including project members to get a better picture of the change
  • Avoid other runtime dependencies
  • Meaningful commit history ; intention is important please rebase your commit history so that each
    commit is meaningful and help the people that will explore a change in 2 years
  • The pull request follows coding style (run ./gradlew spotlessApply for auto-formatting)
  • Mention Fixes #<issue number> in the description if relevant
  • At least one commit should end with Fixes #<issue number> if relevant

Fixes mockito#3824

Signed-off-by: Emanuel Trandafir <emanueltrandafir1993@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update InvocationOnMock to expose the invocation count

1 participant