
org.robolectric.shadows.ShadowActivityGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.app.Activity;
import android.app.ActivityGroup;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(ActivityGroup.class)
public class ShadowActivityGroup extends ShadowActivity {
private Activity currentActivity;
@Implementation
public android.app.Activity getCurrentActivity() {
return currentActivity;
}
/**
* @param activity Current activity.
*/
public void setCurrentActivity(Activity activity) {
currentActivity = activity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy