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

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -