Package | Description |
---|---|
org.robolectric.shadows.httpclient |
Interface | Description |
---|---|
org.robolectric.pluginapi.AccessibilityChecker |
Use Espresso for view interactions.
|
org.robolectric.res.FsFile |
Use
Path instead. |
org.robolectric.Robolectric.AttributeSetBuilder |
Use
AttributeSetBuilder instead. |
Class | Description |
---|---|
org.robolectric.android.AccessibilityUtil |
Use Espresso for view interactions.
|
org.robolectric.fakes.BaseCursor |
Use
MatrixCursor instead. |
org.robolectric.ConfigMerger |
Provide an implementation of
Provider . This class will
be removed in Robolectric 4.3. |
org.robolectric.android.controller.FragmentController |
Native Fragments have been deprecated in Android P. Android encourages developers to
use androidx fragments, to test these use FragmentScenario.
|
org.robolectric.util.FragmentTestUtil |
Please use
Robolectric.buildFragment(Class) instead. This will be
removed in a forthcoming release, |
org.robolectric.internal.MavenManifestFactory |
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.
|
org.robolectric.MavenRoboSettings |
Don't put more stuff here.
|
org.robolectric.plugins.NoOpAccessibilityChecker |
Use Espresso for view interactions.
|
org.robolectric.fakes.RoboCursor |
Use
MatrixCursor instead. |
org.robolectric.RobolectricTestRunner.DeprecatedTestRunnerDefaultConfigProvider | |
org.robolectric.RoboSettings |
Don't put more stuff here.
|
org.robolectric.SdkPicker |
use
DefaultSdkPicker instead. |
org.robolectric.shadows.ShadowBaseLooper |
use ShadowLooper
|
org.robolectric.shadows.ShadowCrossProfileApps.StartedMainActivity | |
org.robolectric.shadows.support.v4.ShadowPausedAsyncTaskLoader |
use the androidx AsyncTaskLoader instead, which has an overriddable getExecutor
method.
|
org.robolectric.shadows.ShadowTelecomManager.CallRecord | |
org.robolectric.util.SimpleFuture | |
org.robolectric.shadows.support.v4.SupportFragmentTestUtil |
Android encourages developers to use androidx fragments, to test these use
androidx.fragment.app.testing.FragmentScenario . |
Annotation Type | Description |
---|---|
org.robolectric.annotation.AccessibilityChecks |
Use Espresso instead. Will be removed after Robolectric 4.4.
|
Field | Description |
---|---|
org.robolectric.res.android.AConfiguration.ACONFIGURATION_ORIENTATION_SQUARE |
Not currently supported or used.
|
org.robolectric.res.android.AConfiguration.ACONFIGURATION_TOUCHSCREEN_STYLUS |
Not currently supported or used.
|
org.robolectric.RuntimeEnvironment.application |
Please migrate to
androidx.test.core.app.ApplicationProvider#getApplicationContext |
org.robolectric.shadows.ShadowTelecomManager.CallRecord.bundle |
Use
ShadowTelecomManager.CallRecord.extras instead. |
org.robolectric.shadows.ShadowBuild.Q |
use Build.VERSION_CODES.Q
|
Constructor | Description |
---|---|
org.robolectric.internal.ManifestIdentifier(Path, Path, Path, String, List<Path>) |
Use
ManifestIdentifier(String, Path, Path, Path, List) instead. |
org.robolectric.android.XmlResourceParserImpl(Document, String, String, String, ResourceTable) |
Enum Constant | Description |
---|---|
org.robolectric.annotation.LooperMode.Mode.LEGACY |
use LooperMode.PAUSED
|
Annotation Type Element | Description |
---|---|
org.robolectric.annotation.Config.assetDir() |
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test
please migrate to the preferred way to configure
|
org.robolectric.annotation.Config.libraries() |
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test
please migrate to the preferred way to configure
|
org.robolectric.annotation.Config.manifest() |
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test
please migrate to the preferred way to configure
builds http://robolectric.org/getting-started/
|
org.robolectric.annotation.Config.packageName() |
To change your package name please override the applicationId in your build system.
Changing package name here is broken as the package name will no longer match the package
name encoded in the arsc resources file. If you are looking to simulate another application
you can create another applications Context using
Context.createPackageContext(String, int) . Note that you must add this
package to ShadowPackageManager.addPackage(android.content.pm.PackageInfo)
first. |
org.robolectric.annotation.Config.resourceDir() |
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test
please migrate to the preferred way to configure
|