org.robolectric.RuntimeEnvironment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robolectric-resources Show documentation
Show all versions of robolectric-resources Show documentation
An alternative Android testing framework.
package org.robolectric;
import android.app.Application;
import android.content.pm.PackageManager;
import org.robolectric.res.builder.RobolectricPackageManager;
public class RuntimeEnvironment {
public static Application application;
private static String qualifiers;
private static Object activityThread;
private static RobolectricPackageManager packageManager;
public static Object getActivityThread() {
return activityThread;
}
public static void setActivityThread(Object newActivityThread) {
activityThread = newActivityThread;
}
public static PackageManager getPackageManager() {
return (PackageManager) packageManager;
}
public static RobolectricPackageManager getRobolectricPackageManager() {
return packageManager;
}
public static void setRobolectricPackageManager(RobolectricPackageManager newPackageManager) {
packageManager = newPackageManager;
}
public static String getQualifiers() {
return qualifiers;
}
public static void setQualifiers(String newQualifiers) {
qualifiers = newQualifiers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy