Conversation
flipper83
commented
Feb 16, 2016
- adding test to sample
- adding error handler sample.
+ Add test that check that show fake data disclaimer.
Thank you @pedrovgs for all support for this PR could be posible |
startActivity(); | ||
onView(withId(R.id.rv_comics)).perform(RecyclerViewActions.scrollToPosition(1)); | ||
|
||
RecyclerViewInteraction.<ComicSeriesDetailViewModel>onRecyclerView( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a style issue but I'd move the recycler view check to a private method in order to make the test easier to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all right!!!
Good shit right there 👍, I include a patch with some typos corrected:
|
|
||
/* | ||
* http://blog.sqisland.com/2015/05/espresso-match-toolbar-title.html | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy paste :P
|
||
onView(allOf(withId(android.support.design.R.id.snackbar_text), | ||
withText("Connection troubles. Ask to Ironman!"))).check( | ||
matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you use isDisplayed instead of this withEffectiveVisibility?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this comes when I had a lot of problems with tests, and I made a lot of crazy things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some tests and I have problems with snackbars and isDisplayed :S
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Good job @flipper83! 👍 Just minor comments. |
PR updated, please review the Readme changes, my english is not the same. |
@@ -248,6 +248,31 @@ public class SamplePresenter extends RosiePresenter<SamplePresenter.View> { | |||
/*...*/ | |||
} | |||
``` | |||
You can create your own factory that converts Exceptions to Error, here you can unify errors or add UI related info to your errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can create your own ErrorFactory
implementation to map Exceptions to Errors. In your implementation you can unify your error handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Review the comments about the README.md and we are ready to publish! |
👍 |