Skip to content

Using MockitoRule #96

Description

@darrillaga

Hi I've been looking for something like this library for a long time, this is awesome!.

Currently I create TestModules full of mock(X.class) replicating the dependencies I need from real graph, I'm doing that for AndroidJunit4 tests with androidX libraries and Robolectric.

The thing is I would like to mix this with the MockitoJUnit Rule, that creates a mock sessions and does proper clean up after tests finishes, do you have something in mind for that integration?

https://static.javadoc.io/org.mockito/mockito-core/2.8.47/org/mockito/junit/MockitoRule.html

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