
org.robolectric.ShadowsAdapter 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.Activity;
import android.app.Application;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import org.robolectric.manifest.AndroidManifest;
import org.robolectric.res.ResourceLoader;
import org.robolectric.util.Scheduler;
/**
* Interface between robolectric and shadows-core modules.
*/
public interface ShadowsAdapter {
Scheduler getBackgroundScheduler();
ShadowActivityAdapter getShadowActivityAdapter(Activity component);
ShadowLooperAdapter getMainLooper();
String getShadowActivityThreadClassName();
ShadowApplicationAdapter getApplicationAdapter(Activity component);
void setupLogging();
String getShadowContextImplClassName();
void setSystemResources(ResourceLoader systemResourceLoader);
void overrideQualifiers(Configuration configuration, String qualifiers);
void bind(Application application, AndroidManifest appManifest, ResourceLoader resourceLoader);
void setAssetsQualifiers(AssetManager assets, String qualifiers);
ResourceLoader getResourceLoader();
interface ShadowActivityAdapter {
void setThemeFromManifest();
}
interface ShadowLooperAdapter {
void runPaused(Runnable runnable);
}
interface ShadowApplicationAdapter {
AndroidManifest getAppManifest();
ResourceLoader getResourceLoader();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy