java - Simulating clicks on items using Robolectric -


i figured type of question have been asked can't seem find answer need. have expandablelistview , last child in each group clickable. need simulate click on particular item, third child. i've tried variations of .performclick , .dispatchtouchevent haven't gotten work right. need call group's onchildclick listener , make sure item selected last one. ideas? let me know if can add information.

note: i'm using code coverage calculator how know listener isn't being called. i'm using robolectric run unit tests.

also, need similar graphicalview achartengine simulate click on region of doughnut chart. insight on appreciated well.

looks similar q. try helper method performitemclick:

robolectric.shadowof(expandablelistview).performitemclick(position);  

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -