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
Post a Comment