Happy New Year and hello all,

I'm trying to write some unit tests for my Android application which uses 
some Google APIs. The problem I have is in my JUnit classes i don't know 
how to get a valid OAuth token (although I can get a valid OAuth token from 
a LoginActivity of my main app). Do you have any example about how to 
obtain a valid OAuth token from setUp() method of a JUnit class to be used 
by testXXX() methods? Or how can I execute LoginActivity from my main app 
first and pass  the OAuth token to setUp() methods before running my unit 
tests?

Thank you a lot!

Regards,
Thai

-- 
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