
android.os.ShadowAsyncTaskBridge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robolectric Show documentation
Show all versions of robolectric Show documentation
An alternative Android testing framework.
The newest version!
package android.os;
import com.xtremelabs.robolectric.internal.DoNotInstrument;
@DoNotInstrument
public class ShadowAsyncTaskBridge {
private AsyncTask asyncTask;
public ShadowAsyncTaskBridge(AsyncTask asyncTask) {
this.asyncTask = asyncTask;
}
public Result doInBackground(Params... params) {
return asyncTask.doInBackground(params);
}
public void onPreExecute() {
asyncTask.onPreExecute();
}
public void onPostExecute(Result result) {
asyncTask.onPostExecute(result);
}
public void onProgressUpdate(Progress... values) {
asyncTask.onProgressUpdate(values);
}
public void onCancelled() {
asyncTask.onCancelled();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy