This answer may get you started:
http://stackoverflow.com/questions/6961754/how-to-call-button-performclick-in-android-junit-test-case/6963033#6963033

On Aug 9, 6:09 pm, Ab Caballero <[email protected]> wrote:
> I want to test that when a button is pressed, that it always does the
> work it is supposed to do, in this case, start a service. Are there
> any built-in methods for a button press? I have looked through the
> documentation and seen a lot of stuff on spinners but not a whole lot
> on buttons.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to