android - How can you test the parceling of a view with Espresso? -


i need test custom view's state saved on activity recreation.

how can test this? can tested espresso?

call activity.recreate() , activity recreated savedinstancestate

@test public void teststateparceling() throws exception {     instrumentationregistry.getinstrumentation().runonmainsync(new runnable() {         @override         public void run() {             maintoolbar.updatetoolbarwithselection(maincontentview.device_activity);             activity.recreate();         }     });      checker.checktoolbartitle(maincontentview.device_activity); } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -