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
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
Fragmentclass, but I wasn't able to inject mock presenters for functional tests.Take for example
UserDetailsPresenterinUserDetailsFragment.Shouldn't you somehow mock the presenter and test what happens (
repositoriesare actually displayed to the ui ) when youloadRepositoriesforUserDetailsFragment?Thanks in advance!
Edit : I updated the question