Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

addAttribute(int, String) - Method in interface org.robolectric.android.AttributeSetBuilder
Set an attribute to the given value.
addAttribute(int, String) - Method in class org.robolectric.android.AttributeSetBuilderImpl
 
addAttribute(int, String) - Method in interface org.robolectric.Robolectric.AttributeSetBuilder
Deprecated.
Set an attribute to the given value.
addPermissions(String...) - Method in class org.robolectric.android.internal.LocalPermissionGranter
 
advanceBy(long) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
advanceBy(long, TimeUnit) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
advanceTo(long) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
advanceToLastPostedRunnable() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
advanceToNextPostedRunnable() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
afterClass() - Method in class org.robolectric.RobolectricTestRunner
 
afterTest(Method) - Method in class org.robolectric.DefaultTestLifecycle
Called after each test method is run.
afterTest(FrameworkMethod, Method) - Method in class org.robolectric.RobolectricTestRunner
 
afterTest(Method) - Method in interface org.robolectric.TestLifecycle
Called after each test method is run.
afterTest(Method) - Method in interface org.robolectric.TestLifecycleApplication
 
all() - Static method in class org.robolectric.android.AndroidInterceptors
 
AndroidConfigurer - Class in org.robolectric.internal
 
AndroidConfigurer(ShadowProviders) - Constructor for class org.robolectric.internal.AndroidConfigurer
 
AndroidInterceptors - Class in org.robolectric.android
 
AndroidInterceptors() - Constructor for class org.robolectric.android.AndroidInterceptors
 
AndroidInterceptors.CleanerInterceptor - Class in org.robolectric.android
Maps calls to Cleaner, which moved between Java 8 and 9:
AndroidInterceptors.LinkedHashMapEldestInterceptor - Class in org.robolectric.android
 
AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor - Class in org.robolectric.android
 
AndroidInterceptors.NoOpInterceptor - Class in org.robolectric.android
 
AndroidInterceptors.PolicyManagerMakeNewWindowInterceptor - Class in org.robolectric.android
 
AndroidInterceptors.SystemArrayCopyInterceptor - Class in org.robolectric.android
 
AndroidInterceptors.SystemLogEInterceptor - Class in org.robolectric.android
 
AndroidInterceptors.SystemTimeInterceptor - Class in org.robolectric.android
 
AndroidSandbox - Class in org.robolectric.internal
Sandbox simulating an Android device.
AndroidSandbox(Sdk, Sdk, ResourcesMode, ApkLoader, AndroidSandbox.TestEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader, ShadowProviders) - Constructor for class org.robolectric.internal.AndroidSandbox
 
AndroidSandbox.SdkSandboxClassLoader - Class in org.robolectric.internal
Adapter from Sdk to ResourceLoader.
AndroidSandbox.TestEnvironmentSpec - Class in org.robolectric.internal
Provides a mechanism for tests to inject a different AndroidTestEnvironment.
AndroidTestEnvironment - Class in org.robolectric.android.internal
 
AndroidTestEnvironment(Sdk, Sdk, ResourcesMode, ApkLoader, ShadowProvider[], TestEnvironmentLifecyclePlugin[]) - Constructor for class org.robolectric.android.internal.AndroidTestEnvironment
 
ApkLoader - Class in org.robolectric
Mediates loading of “APKs” in legacy mode.
ApkLoader() - Constructor for class org.robolectric.ApkLoader
 
apply(Statement, Description) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
 
areAnyRunnable() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
ArscResourceResolver(Context) - Constructor for class org.robolectric.android.AttributeSetBuilderImpl.ArscResourceResolver
 
AttributeSetBuilder - Interface in org.robolectric.android
Builder of AttributeSets.
AttributeSetBuilderImpl - Class in org.robolectric.android
 
AttributeSetBuilderImpl(AttributeSetBuilderImpl.ResourceResolver) - Constructor for class org.robolectric.android.AttributeSetBuilderImpl
 
AttributeSetBuilderImpl.ArscResourceResolver - Class in org.robolectric.android
 
AttributeSetBuilderImpl.LegacyResourceResolver - Class in org.robolectric.android
 
AttributeSetBuilderImpl.ResourceResolver - Interface in org.robolectric.android
 

B

beforeTest(Method) - Method in class org.robolectric.DefaultTestLifecycle
Called before each test method is run.
beforeTest(Sandbox, FrameworkMethod, Method) - Method in class org.robolectric.RobolectricTestRunner
 
beforeTest(Method) - Method in interface org.robolectric.TestLifecycle
Called before each test method is run.
beforeTest(Method) - Method in interface org.robolectric.TestLifecycleApplication
 
BuckManifestFactory - Class in org.robolectric.internal
 
BuckManifestFactory() - Constructor for class org.robolectric.internal.BuckManifestFactory
 
build() - Method in interface org.robolectric.android.AttributeSetBuilder
Build an AttributeSet with the antecedent attributes.
build() - Method in class org.robolectric.android.AttributeSetBuilderImpl
 
build(InstrumentationConfiguration, Sdk, Sdk, ResourcesMode, LooperMode.Mode) - Method in interface org.robolectric.internal.SandboxManager.SandboxBuilder
 
build() - Method in interface org.robolectric.Robolectric.AttributeSetBuilder
Deprecated.
Build an AttributeSet with the antecedent attributes.
buildActivity(Class<T>) - Static method in class org.robolectric.Robolectric
Creates a ActivityController for the given activity class.
buildActivity(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
Creates a ActivityController for the given activity class with the intent.
buildAttributeSet() - Static method in class org.robolectric.Robolectric
Allows for the programmatic creation of an AttributeSet.
buildBackupAgent(Class<T>) - Static method in class org.robolectric.Robolectric
 
buildContentProvider(Class<T>) - Static method in class org.robolectric.Robolectric
 
buildFragment(Class<T>) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Bundle) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Class<? extends Activity>) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Intent, Bundle) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Class<? extends Activity>, Intent) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Class<? extends Activity>, Bundle) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildFragment(Class<T>, Class<? extends Activity>, Intent, Bundle) - Static method in class org.robolectric.Robolectric
Deprecated.
Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
buildGlobalConfig() - Method in class org.robolectric.RobolectricTestRunner
Deprecated.
Provide a service implementation of GlobalConfigProvider instead. See Migration Notes for details. This method will be removed in Robolectric 4.3.
buildIntentService(Class<T>) - Static method in class org.robolectric.Robolectric
 
buildIntentService(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
 
buildService(Class<T>) - Static method in class org.robolectric.Robolectric
 
buildService(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
 

C

checkMainThread() - Method in class org.robolectric.android.internal.NoOpThreadChecker
 
checkNotMainThread() - Method in class org.robolectric.android.internal.NoOpThreadChecker
 
checkStateAfterTestFailure(Throwable) - Method in class org.robolectric.android.internal.AndroidTestEnvironment
 
checkStateAfterTestFailure(Throwable) - Method in interface org.robolectric.internal.TestEnvironment
 
clean(Object) - Static method in class org.robolectric.android.fakes.CleanerCompat
 
CleanerCompat - Class in org.robolectric.android.fakes
Wrapper for Cleaner, used by AndroidInterceptors.CleanerInterceptor when running on Java 9+.
CleanerCompat() - Constructor for class org.robolectric.android.fakes.CleanerCompat
 
CleanerInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.CleanerInterceptor
 
CONFIG_PROPERTIES - Static variable in class org.robolectric.RobolectricTestRunner
 
ConfigConfigurer - Class in org.robolectric.plugins
Provides configuration to Robolectric for its @Config annotation.
ConfigConfigurer(PackagePropertiesLoader) - Constructor for class org.robolectric.plugins.ConfigConfigurer
 
ConfigConfigurer(PackagePropertiesLoader, GlobalConfigProvider) - Constructor for class org.robolectric.plugins.ConfigConfigurer
 
ConfigMerger - Class in org.robolectric
Deprecated.
Provide an implementation of javax.inject.Provider instead. See Migration Notes for details. This class will be removed in Robolectric 4.3.
ConfigMerger() - Constructor for class org.robolectric.ConfigMerger
Deprecated.
 
ConfigurationImpl() - Constructor for class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
 
configure(InstrumentationConfiguration.Builder, Interceptors) - Method in class org.robolectric.internal.AndroidConfigurer
 
configuredSdks(Config, UsesSdk) - Method in class org.robolectric.plugins.DefaultSdkPicker
 
createAndroidManifest(ManifestIdentifier) - Static method in class org.robolectric.RobolectricTestRunner
Deprecated.
Do not use.
createClassHandler(ShadowMap, Sandbox) - Method in class org.robolectric.RobolectricTestRunner
Create a ClassHandler appropriate for the given arguments.
createClassLoaderConfig(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner
Create an InstrumentationConfiguration suitable for the provided FrameworkMethod.
createTest() - Method in class org.robolectric.RobolectricTestRunner
 
createTest() - Method in class org.robolectric.RobolectricTestRunner.HelperTestRunner
 

D

decodeSdk(int, int, int, int, int) - Method in class org.robolectric.plugins.DefaultSdkPicker
 
defaultConfig() - Method in class org.robolectric.plugins.ConfigConfigurer
 
defaultConfig() - Method in class org.robolectric.plugins.LooperModeConfigurer
 
defaultConfig() - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
 
defaultInjector() - Static method in class org.robolectric.RobolectricTestRunner
 
DefaultManifestFactory - Class in org.robolectric.internal
 
DefaultManifestFactory(Properties) - Constructor for class org.robolectric.internal.DefaultManifestFactory
 
DefaultSdk(int, String, String, String, int) - Constructor for class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
 
DefaultSdkPicker - Class in org.robolectric.plugins
Robolectric’s default SdkPicker.
DefaultSdkPicker(SdkCollection, Properties) - Constructor for class org.robolectric.plugins.DefaultSdkPicker
 
DefaultSdkPicker(SdkCollection, String) - Constructor for class org.robolectric.plugins.DefaultSdkPicker
 
DefaultSdkProvider - Class in org.robolectric.plugins
Robolectric’s default SdkProvider.
DefaultSdkProvider(DependencyResolver) - Constructor for class org.robolectric.plugins.DefaultSdkProvider
 
DefaultSdkProvider.DefaultSdk - Class in org.robolectric.plugins
Represents an Android SDK stored at Maven Central.
DefaultTestLifecycle - Class in org.robolectric
 
DefaultTestLifecycle() - Constructor for class org.robolectric.DefaultTestLifecycle
 
DeprecatedMethodMarkerException - Exception in org.robolectric.internal
 
DeprecatedMethodMarkerException() - Constructor for exception org.robolectric.internal.DeprecatedMethodMarkerException
 
DeprecatedTestRunnerDefaultConfigProvider() - Constructor for class org.robolectric.RobolectricTestRunner.DeprecatedTestRunnerDefaultConfigProvider
Deprecated.
 
drainMainThreadUntilIdle() - Method in class org.robolectric.android.internal.LocalControlledLooper
 

E

enumerateEnabledSdks(SdkCollection, String) - Static method in class org.robolectric.plugins.DefaultSdkPicker
 
equals(Object) - Method in class org.robolectric.internal.ManifestIdentifier
 
execStartActivity(Context, IBinder, IBinder, Activity, Intent, int) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
This API was added in Android API 23 (M)
execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle, UserHandle) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
This API was added in Android API 17 (JELLY_BEAN_MR1)
ExpectedLogMessagesRule - Class in org.robolectric.junit.rules
Allows tests to assert about the presence of log messages, and turns logged errors that are not explicitly expected into test failures.
ExpectedLogMessagesRule() - Constructor for class org.robolectric.junit.rules.ExpectedLogMessagesRule
 
expectErrorsForTag(String) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
Blanket suppress test failures due to errors from a tag.
expectLogMessage(int, String, String) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
Adds an expected log statement.

F

finallyAfterTest(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner
 
findInterceptors() - Method in class org.robolectric.RobolectricTestRunner
 
finish(int, Bundle) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
finishActivity(Activity) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
flushBackgroundThreadScheduler() - Static method in class org.robolectric.Robolectric
Execute all runnables that have been enqueued on the background scheduler.
flushForegroundThreadScheduler() - Static method in class org.robolectric.Robolectric
Execute all runnables that have been enqueued on the foreground scheduler.
FragmentTestUtil - Class in org.robolectric.util
Deprecated.
Please use Robolectric.buildFragment(Class) instead. This will be removed in a forthcoming release,
FragmentTestUtil() - Constructor for class org.robolectric.util.FragmentTestUtil
Deprecated.
 

G

get(ConfigurationStrategy.Configuration) - Static method in class org.robolectric.plugins.ConfigConfigurer
 
get(Class<T>) - Method in class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
 
get() - Method in class org.robolectric.RobolectricTestRunner.DeprecatedTestRunnerDefaultConfigProvider
Deprecated.
 
getActivityResult() - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
getAndroidCodeName() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
 
getAndroidSandbox(InstrumentationConfiguration, Sdk, ResourcesMode, LooperMode.Mode) - Method in class org.robolectric.internal.SandboxManager
 
getAndroidVersion() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
 
getApkFile() - Method in class org.robolectric.internal.ManifestIdentifier
 
getAppResourceTable(AndroidManifest) - Method in class org.robolectric.ApkLoader
 
getAssetDir() - Method in class org.robolectric.internal.ManifestIdentifier
 
getBackgroundThreadScheduler() - Static method in class org.robolectric.Robolectric
Return the background scheduler.
getBuildSystemApiProperties() - Method in class org.robolectric.RobolectricTestRunner
 
getChildren() - Method in class org.robolectric.ParameterizedRobolectricTestRunner
 
getChildren() - Method in class org.robolectric.RobolectricTestRunner
 
getClazz() - Method in class org.robolectric.internal.AndroidSandbox.TestEnvironmentSpec
 
getCompileTimeSdkResourceTable() - Method in class org.robolectric.ApkLoader
Returns the ResourceTable for the compile time SDK.
getConfig(Class<?>, Method, Config) - Method in class org.robolectric.ConfigMerger
Deprecated.
Calculate the Config for the given test.
getConfig(Class<?>, Method) - Method in class org.robolectric.plugins.HierarchicalConfigurationStrategy
 
getConfig(Method) - Method in class org.robolectric.RobolectricTestRunner
Deprecated.
Provide an implementation of javax.inject.Provider instead. See Migration Notes for details. This method will be removed in Robolectric 4.3.
getConfigClass() - Method in class org.robolectric.plugins.ConfigConfigurer
 
getConfigClass() - Method in class org.robolectric.plugins.LooperModeConfigurer
 
getConfigClass() - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
 
getConfigFor(String) - Method in class org.robolectric.plugins.ConfigConfigurer
 
getConfigFor(Class<?>) - Method in class org.robolectric.plugins.ConfigConfigurer
 
getConfigFor(Method) - Method in class org.robolectric.plugins.ConfigConfigurer
 
getConfigFor(String) - Method in class org.robolectric.plugins.LooperModeConfigurer
 
getConfigFor(Class<?>) - Method in class org.robolectric.plugins.LooperModeConfigurer
 
getConfigFor(Method) - Method in class org.robolectric.plugins.LooperModeConfigurer
 
getConfigFor(String) - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
 
getConfigFor(Class<?>) - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
 
getConfigFor(Method) - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
 
getConfigProperties(String) - Method in class org.robolectric.ConfigMerger
Deprecated.
Return a Properties file for the given package name, or null if none is available.
getConfigProperties(String) - Method in class org.robolectric.plugins.PackagePropertiesLoader
Return a Properties file for the given package name, or null if none is available.
getConfiguration(Method) - Method in class org.robolectric.RobolectricTestRunner
Deprecated.
Going away before 4.2. DO NOT SHIP.
getCurrentTime() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
getExtraShadows(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner
 
getForegroundThreadScheduler() - Static method in class org.robolectric.Robolectric
Return the foreground scheduler (e.g.
getHelperTestRunner(Class) - Method in class org.robolectric.RobolectricTestRunner
 
getIdentifier(String, String, String) - Method in class org.robolectric.android.AttributeSetBuilderImpl.ArscResourceResolver
 
getIdentifier(String, String, String) - Method in class org.robolectric.android.AttributeSetBuilderImpl.LegacyResourceResolver
 
getIdentifier(String, String, String) - Method in interface org.robolectric.android.AttributeSetBuilderImpl.ResourceResolver
 
getIdleState() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
getIntentForActivity(Class<? extends Activity>) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
getJarPath() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
 
getKnownSdks() - Method in class org.robolectric.plugins.SdkCollection
 
getLastScheduledTaskTime() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
getLibraries() - Method in class org.robolectric.internal.ManifestIdentifier
 
getLocalArtifactUrl(DependencyJar) - Method in class org.robolectric.internal.dependency.LocalDependencyResolver
 
getLocalArtifactUrl(DependencyJar) - Method in class org.robolectric.internal.dependency.PropertiesDependencyResolver
 
getLocalArtifactUrl(DependencyJar) - Method in class org.robolectric.plugins.LegacyDependencyResolver
 
getLocalArtifactUrls(DependencyJar) - Method in class org.robolectric.plugins.LegacyDependencyResolver
 
getManifestFactory(Config) - Method in class org.robolectric.RobolectricTestRunner
Detects which build system is in use and returns the appropriate ManifestFactory implementation.
getManifestFile() - Method in class org.robolectric.internal.ManifestIdentifier
 
getMaxSupportedSdk() - Method in class org.robolectric.plugins.SdkCollection
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.CleanerInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.LinkedHashMapEldestInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.NoOpInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.PolicyManagerMakeNewWindowInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.SystemArrayCopyInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.SystemLogEInterceptor
 
getMethodHandle(String, MethodType) - Method in class org.robolectric.android.AndroidInterceptors.SystemTimeInterceptor
 
getNextScheduledTaskTime() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
getPackageName() - Method in class org.robolectric.android.AttributeSetBuilderImpl.ArscResourceResolver
 
getPackageName() - Method in class org.robolectric.android.AttributeSetBuilderImpl.LegacyResourceResolver
 
getPackageName() - Method in interface org.robolectric.android.AttributeSetBuilderImpl.ResourceResolver
 
getPackageName() - Method in class org.robolectric.internal.ManifestIdentifier
 
getResDir() - Method in class org.robolectric.internal.ManifestIdentifier
 
getResourceName(Integer) - Method in class org.robolectric.android.AttributeSetBuilderImpl.ArscResourceResolver
 
getResourceName(Integer) - Method in class org.robolectric.android.AttributeSetBuilderImpl.LegacyResourceResolver
 
getResourceName(Integer) - Method in interface org.robolectric.android.AttributeSetBuilderImpl.ResourceResolver
 
getSandbox(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner
 
getSdk() - Method in class org.robolectric.internal.AndroidSandbox
 
getSdk(int) - Method in class org.robolectric.plugins.SdkCollection
 
getSdks() - Method in class org.robolectric.plugins.DefaultSdkProvider
 
getSupportedSdks() - Method in class org.robolectric.plugins.SdkCollection
 
getTestEnvironment() - Method in class org.robolectric.internal.AndroidSandbox
 
getTestLifecycleClass() - Method in class org.robolectric.RobolectricTestRunner
An instance of the returned class will be created for each test invocation.
getUnsupportedMessage() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
 

H

handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.CleanerInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.LinkedHashMapEldestInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.NoOpInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.PolicyManagerMakeNewWindowInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.SystemArrayCopyInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.SystemLogEInterceptor
 
handle(MethodSignature) - Method in class org.robolectric.android.AndroidInterceptors.SystemTimeInterceptor
 
hashCode() - Method in class org.robolectric.internal.ManifestIdentifier
 
HelperTestRunner(Class) - Constructor for class org.robolectric.RobolectricTestRunner.HelperTestRunner
 
HierarchicalConfigurationStrategy - Class in org.robolectric.plugins
Robolectric’s default ConfigurationStrategy.
HierarchicalConfigurationStrategy(Configurer<?>...) - Constructor for class org.robolectric.plugins.HierarchicalConfigurationStrategy
 
HierarchicalConfigurationStrategy.ConfigurationImpl - Class in org.robolectric.plugins
 

I

identify(Config) - Method in class org.robolectric.internal.BuckManifestFactory
 
identify(Config) - Method in class org.robolectric.internal.DefaultManifestFactory
 
identify(Config) - Method in interface org.robolectric.internal.ManifestFactory
Creates a ManifestIdentifier which represents an Android app, service, or library under test, indicating its manifest file, resources and assets directories, and optionally dependency libraries and an overridden package name.
identify(Config) - Method in class org.robolectric.internal.MavenManifestFactory
Deprecated.
 
idleConstantly(boolean) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
Deprecated.
ignoreMissingLoggedTags(boolean) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
If set true, tests that call #expectErrorsForTag() but do not log errors for the given tag will not fail.
injectKeyEvent(KeyEvent) - Method in class org.robolectric.android.internal.LocalUiController
 
injectMotionEvent(MotionEvent) - Method in class org.robolectric.android.internal.LocalUiController
 
injectString(String) - Method in class org.robolectric.android.internal.LocalUiController
 
installMultidex() - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
isBuck() - Static method in class org.robolectric.internal.BuckManifestFactory
 
ISO_8859_1 - Static variable in class org.robolectric.android.fakes.RoboCharsets
A cheap and type-safe constant for the ISO-8859-1 Charset.
isPaused() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
isSupported() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
 

K

keySet() - Method in class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
 

L

LegacyDependencyResolver - Class in org.robolectric.plugins
Robolectric’s historical dependency resolver (which is currently still the default), which is used by DefaultSdkProvider to locate SDK jars.
LegacyDependencyResolver(Properties) - Constructor for class org.robolectric.plugins.LegacyDependencyResolver
 
LegacyResourceResolver(Context, ResourceTable) - Constructor for class org.robolectric.android.AttributeSetBuilderImpl.LegacyResourceResolver
 
LinkedHashMapEldestInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.LinkedHashMapEldestInterceptor
 
LocalActivityInvoker - Class in org.robolectric.android.internal
An ActivityInvoker that drives Activity lifecycles manually.
LocalActivityInvoker() - Constructor for class org.robolectric.android.internal.LocalActivityInvoker
 
LocalControlledLooper - Class in org.robolectric.android.internal
 
LocalControlledLooper() - Constructor for class org.robolectric.android.internal.LocalControlledLooper
 
LocalDependencyResolver - Class in org.robolectric.internal.dependency
 
LocalDependencyResolver(File) - Constructor for class org.robolectric.internal.dependency.LocalDependencyResolver
 
LocaleAdjustLanguageCodeInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor
 
LocalPermissionGranter - Class in org.robolectric.android.internal
A PermissionGranter that runs on a local JVM with Robolectric.
LocalPermissionGranter() - Constructor for class org.robolectric.android.internal.LocalPermissionGranter
 
LocalUiController - Class in org.robolectric.android.internal
A UiController that runs on a local JVM with Robolectric.
LocalUiController() - Constructor for class org.robolectric.android.internal.LocalUiController
 
LooperDelegatingScheduler - Class in org.robolectric.android.internal
A foreground Scheduler implementation used for LooperMode.Mode#PAUSED.
LooperDelegatingScheduler(Looper) - Constructor for class org.robolectric.android.internal.LooperDelegatingScheduler
 
LooperModeConfigurer - Class in org.robolectric.plugins
Provides configuration to Robolectric for its @LooperMode annotation.
LooperModeConfigurer(Properties) - Constructor for class org.robolectric.plugins.LooperModeConfigurer
 
loopMainThreadForAtLeast(long) - Method in class org.robolectric.android.internal.LocalUiController
 
loopMainThreadUntilIdle() - Method in class org.robolectric.android.internal.LocalUiController
 

M

mainThreadFactory() - Method in class org.robolectric.internal.AndroidSandbox
 
ManifestFactory - Interface in org.robolectric.internal
A factory that detects what build system is in use and provides a ManifestFactory that can create an AndroidManifest for that environment.
ManifestIdentifier - Class in org.robolectric.internal
 
ManifestIdentifier(String, Path, Path, Path, List<ManifestIdentifier>) - Constructor for class org.robolectric.internal.ManifestIdentifier
 
ManifestIdentifier(String, Path, Path, Path, List<ManifestIdentifier>, Path) - Constructor for class org.robolectric.internal.ManifestIdentifier
 
ManifestIdentifier(Path, Path, Path, String, List<Path>) - Constructor for class org.robolectric.internal.ManifestIdentifier
map() - Method in class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
 
MavenManifestFactory - Class in org.robolectric.internal
Deprecated.
This method of configuration will be removed in a forthcoming release. Build systems should follow http://robolectric.org/build-system-integration/ to provide integration with Robolectric.
MavenManifestFactory() - Constructor for class org.robolectric.internal.MavenManifestFactory
Deprecated.
 
merge(Config, Config) - Method in class org.robolectric.plugins.ConfigConfigurer
 
merge(LooperMode.Mode, LooperMode.Mode) - Method in class org.robolectric.plugins.LooperModeConfigurer
 
merge(TextLayoutMode.Mode, TextLayoutMode.Mode) - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
 
methodBlock(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner.HelperTestRunner
 

N

NoOpInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.NoOpInterceptor
 
NoOpThreadChecker - Class in org.robolectric.android.internal
In Robolectric environment, everything is executed on the main thread except for when you manually create and run your code on worker thread.
NoOpThreadChecker() - Constructor for class org.robolectric.android.internal.NoOpThreadChecker
 

O

org.robolectric - package org.robolectric
Package containing main Robolectric classes.
org.robolectric.android - package org.robolectric.android
 
org.robolectric.android.fakes - package org.robolectric.android.fakes
 
org.robolectric.android.internal - package org.robolectric.android.internal
 
org.robolectric.internal - package org.robolectric.internal
 
org.robolectric.internal.dependency - package org.robolectric.internal.dependency
 
org.robolectric.junit.rules - package org.robolectric.junit.rules
 
org.robolectric.plugins - package org.robolectric.plugins
 
org.robolectric.util - package org.robolectric.util
 

P

PackagePropertiesLoader - Class in org.robolectric.plugins
Provides cached access to robolectric-properties files, for all your configuration needs!
PackagePropertiesLoader() - Constructor for class org.robolectric.plugins.PackagePropertiesLoader
 
ParameterizedRobolectricTestRunner - Class in org.robolectric
A Parameterized test runner for Robolectric.
ParameterizedRobolectricTestRunner(Class<?>) - Constructor for class org.robolectric.ParameterizedRobolectricTestRunner
 
ParameterizedRobolectricTestRunner.Parameter - Annotation Type in org.robolectric
Annotation for fields of the test class which will be initialized by the method annotated by Parameters
By using directly this annotation, the test class constructor isn’t needed.
Index range must start at 0.
ParameterizedRobolectricTestRunner.Parameters - Annotation Type in org.robolectric
Annotation for a method which provides parameters to be injected into the test class constructor by Parameterized
parseValue(Integer, ResName, AttributeResource, TypedValue) - Method in class org.robolectric.android.AttributeSetBuilderImpl.ArscResourceResolver
 
parseValue(Integer, ResName, AttributeResource, TypedValue) - Method in class org.robolectric.android.AttributeSetBuilderImpl.LegacyResourceResolver
 
parseValue(Integer, ResName, AttributeResource, TypedValue) - Method in interface org.robolectric.android.AttributeSetBuilderImpl.ResourceResolver
 
pause() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
pauseActivity(Activity) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
PolicyManagerMakeNewWindowInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.PolicyManagerMakeNewWindowInterceptor
 
populateSdks(TreeMap<Integer, Sdk>) - Method in class org.robolectric.plugins.DefaultSdkProvider
 
post(Runnable) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
postAtFrontOfQueue(Runnable) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
postDelayed(Runnable, long) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
postDelayed(Runnable, long, TimeUnit) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
prepareTest(Object) - Method in class org.robolectric.DefaultTestLifecycle
 
prepareTest(Object) - Method in interface org.robolectric.TestLifecycle
Called after each test method is run.
prepareTest(Object) - Method in interface org.robolectric.TestLifecycleApplication
 
PropertiesDependencyResolver - Class in org.robolectric.internal.dependency
 
PropertiesDependencyResolver(Path) - Constructor for class org.robolectric.internal.dependency.PropertiesDependencyResolver
 
PropertiesDependencyResolver(Path, DependencyResolver) - Constructor for class org.robolectric.internal.dependency.PropertiesDependencyResolver
 
put(Class<T>, T) - Method in class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
 

R

recreateActivity(Activity) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
register(Object, Runnable) - Static method in class org.robolectric.android.fakes.CleanerCompat
 
remove(Runnable) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
requestPermissions() - Method in class org.robolectric.android.internal.LocalPermissionGranter
 
requiresConnection() - Method in enum org.robolectric.android.fakes.RoboResponseSource
 
reset() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
resetState() - Method in class org.robolectric.android.internal.AndroidTestEnvironment
 
resetState() - Method in interface org.robolectric.internal.TestEnvironment
 
ResourcesMode - Enum in org.robolectric.internal
 
resumeActivity(Activity) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
RoboCharsets - Class in org.robolectric.android.fakes
 
RoboCharsets() - Constructor for class org.robolectric.android.fakes.RoboCharsets
 
RoboExtendedResponseCache - Interface in org.robolectric.android.fakes
A response cache that supports statistics tracking and updating stored responses.
Robolectric - Class in org.robolectric
 
Robolectric() - Constructor for class org.robolectric.Robolectric
 
Robolectric.AttributeSetBuilder - Interface in org.robolectric
Deprecated.
Use AttributeSetBuilder instead.
RobolectricTestRunner - Class in org.robolectric
Loads and runs a test in a SandboxClassLoader in order to provide a simulation of the Android runtime environment.
RobolectricTestRunner(Class<?>) - Constructor for class org.robolectric.RobolectricTestRunner
Creates a runner to run testClass.
RobolectricTestRunner(Class<?>, Injector) - Constructor for class org.robolectric.RobolectricTestRunner
 
RobolectricTestRunner.DeprecatedTestRunnerDefaultConfigProvider - Class in org.robolectric
Deprecated.
RobolectricTestRunner.HelperTestRunner - Class in org.robolectric
 
RoboMonitoringInstrumentation - Class in org.robolectric.android.fakes
 
RoboMonitoringInstrumentation() - Constructor for class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
RoboResponseSource - Enum in org.robolectric.android.fakes
Where the HTTP client should look for a response.
runOneTask() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
runOnMainSync(Runnable) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 

S

SandboxManager - Class in org.robolectric.internal
Manager of sandboxes.
SandboxManager(SandboxManager.SandboxBuilder, SdkCollection) - Constructor for class org.robolectric.internal.SandboxManager
 
SandboxManager.SandboxBuilder - Interface in org.robolectric.internal
Factory interface for AndroidSandbox.
SdkCollection - Class in org.robolectric.plugins
Holds and provides details on the list of known SDKs.
SdkCollection(SdkProvider) - Constructor for class org.robolectric.plugins.SdkCollection
 
SdkPicker - Class in org.robolectric
Deprecated.
use DefaultSdkPicker instead.
SdkPicker(SdkCollection, Properties) - Constructor for class org.robolectric.SdkPicker
Deprecated.
 
sdkRange(int, int) - Method in class org.robolectric.plugins.DefaultSdkPicker
 
SdkSandboxClassLoader(InstrumentationConfiguration, Sdk, ClassInstrumentor) - Constructor for class org.robolectric.internal.AndroidSandbox.SdkSandboxClassLoader
 
selectSdks(ConfigurationStrategy.Configuration, UsesSdk) - Method in class org.robolectric.plugins.DefaultSdkPicker
Enumerate the SDKs to be used for this test.
setClassAttribute(String) - Method in interface org.robolectric.android.AttributeSetBuilder
Set the class attribute to the given value.
setClassAttribute(String) - Method in class org.robolectric.android.AttributeSetBuilderImpl
 
setIdAttribute(String) - Method in interface org.robolectric.android.AttributeSetBuilder
Set the id attribute to the given value.
setIdAttribute(String) - Method in class org.robolectric.android.AttributeSetBuilderImpl
 
setIdleState(Scheduler.IdleState) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
setInTouchMode(boolean) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
setStyleAttribute(String) - Method in interface org.robolectric.android.AttributeSetBuilder
Set the style attribute to the given value.
setStyleAttribute(String) - Method in class org.robolectric.android.AttributeSetBuilderImpl
 
setStyleAttribute(String) - Method in interface org.robolectric.Robolectric.AttributeSetBuilder
Deprecated.
Set the style attribute to the given value.
setupActivity(Class<T>) - Static method in class org.robolectric.Robolectric
Deprecated.
use androidx.test.core.app.ActivityScenario
setUpApplicationState(Method, ConfigurationStrategy.Configuration, AndroidManifest) - Method in class org.robolectric.android.internal.AndroidTestEnvironment
 
setUpApplicationState(Method, ConfigurationStrategy.Configuration, AndroidManifest) - Method in interface org.robolectric.internal.TestEnvironment
 
setupBackupAgent(Class<T>) - Static method in class org.robolectric.Robolectric
 
setupContentProvider(Class<T>) - Static method in class org.robolectric.Robolectric
 
setupContentProvider(Class<T>, String) - Static method in class org.robolectric.Robolectric
 
setupIntentService(Class<T>) - Static method in class org.robolectric.Robolectric
 
setupService(Class<T>) - Static method in class org.robolectric.Robolectric
 
simulateWindowFocus(View) - Method in class org.robolectric.android.internal.LocalControlledLooper
 
size() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
specifyDexMakerCacheProperty() - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
startActivity(Intent) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
startActivitySync(Intent) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
startActivitySyncInternal(Intent) - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
startFragment(Fragment) - Static method in class org.robolectric.util.FragmentTestUtil
Deprecated.
 
startFragment(Fragment, Class<? extends Activity>) - Static method in class org.robolectric.util.FragmentTestUtil
Deprecated.
 
startVisibleFragment(Fragment) - Static method in class org.robolectric.util.FragmentTestUtil
Deprecated.
 
startVisibleFragment(Fragment, Class<? extends Activity>, int) - Static method in class org.robolectric.util.FragmentTestUtil
Deprecated.
 
staticGetBuildSystemApiProperties() - Static method in class org.robolectric.RobolectricTestRunner
 
stopActivity(Activity) - Method in class org.robolectric.android.internal.LocalActivityInvoker
 
SystemArrayCopyInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.SystemArrayCopyInterceptor
 
SystemLogEInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.SystemLogEInterceptor
 
SystemTimeInterceptor() - Constructor for class org.robolectric.android.AndroidInterceptors.SystemTimeInterceptor
 

T

tearDownApplication() - Method in class org.robolectric.android.internal.AndroidTestEnvironment
 
tearDownApplication() - Method in interface org.robolectric.internal.TestEnvironment
 
TestEnvironment - Interface in org.robolectric.internal
An environment for running tests.
TestEnvironmentSpec() - Constructor for class org.robolectric.internal.AndroidSandbox.TestEnvironmentSpec
 
TestEnvironmentSpec(Class<? extends AndroidTestEnvironment>) - Constructor for class org.robolectric.internal.AndroidSandbox.TestEnvironmentSpec
 
TestLifecycle<T> - Interface in org.robolectric
 
TestLifecycleApplication - Interface in org.robolectric
 
TextLayoutModeConfigurer - Class in org.robolectric.plugins
Provides configuration to Robolectric for its @TextLayoutMode annotation.
TextLayoutModeConfigurer() - Constructor for class org.robolectric.plugins.TextLayoutModeConfigurer
 
toString() - Method in class org.robolectric.internal.AndroidSandbox
 
toString() - Method in class org.robolectric.internal.ManifestIdentifier
 
trackConditionalCacheHit() - Method in interface org.robolectric.android.fakes.RoboExtendedResponseCache
Track an conditional GET that was satisfied by this cache.
trackResponse(RoboResponseSource) - Method in interface org.robolectric.android.fakes.RoboExtendedResponseCache
Track an HTTP response being satisfied by source.

U

unPause() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
 
update(CacheResponse, HttpURLConnection) - Method in interface org.robolectric.android.fakes.RoboExtendedResponseCache
Updates stored HTTP headers using a hit on a conditional GET.
US_ASCII - Static variable in class org.robolectric.android.fakes.RoboCharsets
A cheap and type-safe constant for the US-ASCII Charset.
UTF_8 - Static variable in class org.robolectric.android.fakes.RoboCharsets
A cheap and type-safe constant for the UTF-8 Charset.

V

valueOf(String) - Static method in enum org.robolectric.android.fakes.RoboResponseSource
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.robolectric.internal.ResourcesMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.robolectric.android.fakes.RoboResponseSource
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.robolectric.internal.ResourcesMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitForIdleSync() - Method in class org.robolectric.android.fakes.RoboMonitoringInstrumentation
 
withConfig(InstrumentationConfiguration.Builder, Config) - Method in class org.robolectric.internal.AndroidConfigurer
 
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links