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

inject mocks: wrong example? #381

Open
icegood opened this issue Oct 17, 2024 · 0 comments
Open

inject mocks: wrong example? #381

icegood opened this issue Oct 17, 2024 · 0 comments

Comments

@icegood
Copy link

icegood commented Oct 17, 2024

https://github.com/WebJournal/journaldev/blob/master/Mockito-Examples/src/test/java/com/journaldev/mockito/injectmocks/MockitoInjectMocksExamples.java

when/thenReturn should be done against
emailService and smsService and not against
AppServices(|1|2) instances

or the author doesn't understand idea of mock injection

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

No branches or pull requests

1 participant