Skip to content

inject mocks: wrong example? #381

@icegood

Description

@icegood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions