All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.RuntimeEnvironment Maven / Gradle / Ivy

There is a newer version: 3.4-rc2
Show newest version
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