Skip to content

Why is DaggerMock trying to mock all objects in the graph? #94

@bnvinay92

Description

@bnvinay92

Mockito cannot mock/spy because :

  • final class

I have an object that is being passed into a subcomponent with @BindsInstance. DaggerMock is trying to mock this object even though I don't want to mock it in tests, and this is causing my test to crash.

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