Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test presenter method? #289

Closed
pro100svitlo opened this issue Oct 17, 2018 · 4 comments
Closed

How to test presenter method? #289

pro100svitlo opened this issue Oct 17, 2018 · 4 comments

Comments

@pro100svitlo
Copy link

https://github.com/android10/Android-CleanArchitecture/blob/master/presentation/src/androidTest/java/com/fernandocejas/android10/sample/test/presenter/UserDetailsPresenterTest.java

Here, in your example above, you just show how we can test method before execute called.
But how we can check whats happen after? How can we check if there was correct method called when use case return onError(for example)?

@rajondj
Copy link

rajondj commented Oct 22, 2018

Dutch bangla bank joypurhat bangladesh..MD.ASHIKUR RAHMAN KHAN

@epetrenko
Copy link

@pro100svitlo I think your question is related with another issue - #223.

Please, check this comment. I've shared a common solution which I usually use for testing observer methods within presenter.

@pro100svitlo
Copy link
Author

@epetrenko awesome!
thanks!

@devendroid
Copy link

devendroid commented Jan 30, 2020

@epetrenko Have you any idea about this issue #297 ? Please help...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants