Hi there,
I just returned from a break, and discovered that one of our team wrote a shadow for AsyncTask#executeOnExecutor.
It's an API level 11 call, and as such the current Robolectric, built against API 10 jars, fails the RobolectricWiringTest:
testAllImplementationMethodsHaveCorrectSignature(com.xtremelabs.robolectric.bytecode.RobolectricWiringTest) Time elapsed: 0.416 sec <<< FAILURE!
java.lang.AssertionError: @Implementation method mismatch: public final android.os.AsyncTask<Params, Progress, Result> com.xtremelabs.robolectric.shadows.ShadowAsyncTask.executeOnExecutor(java.util.concurrent.Executor,Params[]) doesn't match a real method expected:<0> but was:<1>
I've fixed the build in the main repo, but we're using this in our app, and so we want Robolectric to support it.
1) Is there any reason Robolectric is still using the API level 10 (Android 2.3.3) jars, other than a lack of necessity to upgrade before now?
2) Can we update to a newer set of jars? Will there be anticipated problems, as with the Android support jar?
If no one has issues, I'd like to take a stab at the work.
Thanks,
Michael Portuesi