I think Jake is talking about "finals" free version of android.jar to allow 
mocking any class you need.

What I can suggest:

1) Allow to set custom android.jar for test scope via Android Gradle Plugin, 
better smtng like this: testCompile 'com.android:test-android-platform:21.0.0' 
you got the Idea, just normal dependency

2) Generate and compile version of android.jar with erased "final" modifyers 
for each Android platform version and pusblish them to mavenCentral/jCenter, 
erasing "final" will allow to use Mockito/etc libraries for mocking EVERY class 
you need

3) Happy unit testing!

4) Community will produce cool mock libraries for different purposes which you 
will able to use with required android.jar

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to