Skip to content

Inject presenters for tests #1

@codeteo

Description

@codeteo

That's a great sample app - thanks a lot for sharing the code!

I've got one question : I have a similar setup where, like you do, I use constructor injection for my presenters and I @Inject each presenter in the corresponding Fragment class, but I wasn't able to inject mock presenters for functional tests.

Take for example UserDetailsPresenter in UserDetailsFragment.
Shouldn't you somehow mock the presenter and test what happens ( repositories are actually displayed to the ui ) when you loadRepositories for UserDetailsFragment ?

Thanks in advance!

Edit : I updated the question

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