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

Fix/#41 links #42

Merged
merged 3 commits into from
Aug 12, 2018
Merged

Fix/#41 links #42

merged 3 commits into from
Aug 12, 2018

Conversation

DamianFekete
Copy link
Contributor

@DamianFekete DamianFekete commented Aug 11, 2018

Fixes #41

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 more fix, then LGTM

partial mocking, real methods are invoked but still can be verified and stubbed
* [`@InjectMocks`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/InjectMocks.html): automatically inject mocks/spies fields annotated with `@Spy` or `@Mock`
* [`verify()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#verify(T)): to check methods were called with given arguments
* [`verify()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#verify-T-): to check methods were called with given arguments
* can use flexible argument matching, for example any expression via the [`any()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Matchers.html#any())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DamianFekete
Copy link
Contributor Author

I haven't seen that Matchers is deprecated and that is why I didn't want to change the link.

@TimvdLippe TimvdLippe merged commit e225c58 into mockito:master Aug 12, 2018
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.

None yet

2 participants