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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -