Skip to content

Commit

Permalink
Visibility changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-tabak committed Oct 14, 2014
1 parent d0a1d89 commit dd8c5f1
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -59,12 +59,12 @@
* provide a simulation of the Android runtime environment.
*/
public class RobolectricTestRunner extends BlockJUnit4ClassRunner {
private static final MavenCentral MAVEN_CENTRAL = new MavenCentral();
protected static final MavenCentral MAVEN_CENTRAL = new MavenCentral();
private static final Map<Class<? extends RobolectricTestRunner>, EnvHolder> envHoldersByTestRunner = new HashMap<Class<? extends RobolectricTestRunner>, EnvHolder>();
private static Map<Pair<AndroidManifest, SdkConfig>, ResourceLoader> resourceLoadersByManifestAndConfig = new HashMap<Pair<AndroidManifest, SdkConfig>, ResourceLoader>();
private static ShadowMap mainShadowMap;
private final EnvHolder envHolder;
private TestLifecycle<Application> testLifecycle;
protected TestLifecycle<Application> testLifecycle;

static {
new SecureRandom(); // this starts up the Poller SunPKCS11-Darwin thread early, outside of any Robolectric classloader
Expand All @@ -73,7 +73,7 @@ public class RobolectricTestRunner extends BlockJUnit4ClassRunner {
private Class<? extends RobolectricTestRunner> lastTestRunnerClass;
private SdkConfig lastSdkConfig;
private SdkEnvironment lastSdkEnvironment;
private final HashSet<Class<?>> loadedTestClasses = new HashSet<Class<?>>();
protected final HashSet<Class<?>> loadedTestClasses = new HashSet<Class<?>>();

/**
* Creates a runner to run {@code testClass}. Looks in your working directory for your AndroidManifest.xml file
Expand All @@ -97,7 +97,7 @@ public RobolectricTestRunner(final Class<?> testClass) throws InitializationErro
this.envHolder = envHolder;
}

private void assureTestLifecycle(SdkEnvironment sdkEnvironment) {
protected void assureTestLifecycle(SdkEnvironment sdkEnvironment) {
try {
ClassLoader robolectricClassLoader = sdkEnvironment.getRobolectricClassLoader();
testLifecycle = (TestLifecycle) robolectricClassLoader.loadClass(getTestLifecycleClass().getName()).newInstance();
Expand Down Expand Up @@ -272,7 +272,7 @@ public void evaluate() throws Throwable {
};
}

private void invokeBeforeClass(final Class clazz) throws Throwable {
protected void invokeBeforeClass(final Class clazz) throws Throwable {
if (!loadedTestClasses.contains(clazz)) {
loadedTestClasses.add(clazz);

Expand All @@ -292,7 +292,7 @@ protected HelperTestRunner getHelperTestRunner(Class bootstrappedTestClass) {
}
}

private SdkEnvironment getEnvironment(final AndroidManifest appManifest, final Config config) {
protected SdkEnvironment getEnvironment(final AndroidManifest appManifest, final Config config) {
final SdkConfig sdkConfig = pickSdkVersion(appManifest, config);

// keep the most recently-used SdkEnvironment strongly reachable to prevent thrashing in low-memory situations.
Expand Down Expand Up @@ -448,7 +448,7 @@ protected int pickReportedSdkVersion(Config config, AndroidManifest appManifest)
}
}

private ParallelUniverseInterface getHooksInterface(SdkEnvironment sdkEnvironment) {
protected ParallelUniverseInterface getHooksInterface(SdkEnvironment sdkEnvironment) {
ClassLoader robolectricClassLoader = sdkEnvironment.getRobolectricClassLoader();
Class<? extends ParallelUniverseInterface> parallelUniverseClass =
type(ParallelUniverse.class.getName())
Expand Down Expand Up @@ -543,7 +543,7 @@ protected static boolean globalI18nStrictEnabled() {
* @param method
* @return
*/
private Map<Field, Object> getWithConstantAnnotations(Method method) {
protected Map<Field, Object> getWithConstantAnnotations(Method method) {
Map<Field, Object> constants = new HashMap<Field, Object>();

for (Annotation anno : method.getDeclaringClass().getAnnotations()) {
Expand Down Expand Up @@ -595,7 +595,7 @@ private void addConstantFromAnnotation(Map<Field, Object> constants, Annotation
*
* @param constants
*/
private void setupConstants(Map<Field, Object> constants) {
protected void setupConstants(Map<Field, Object> constants) {
for (Field field : constants.keySet()) {
Object newValue = constants.get(field);
Object oldValue = Robolectric.Reflection.setFinalStaticField(field, newValue);
Expand Down

0 comments on commit dd8c5f1

Please sign in to comment.