@Documented @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface Config
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends android.app.Application> |
application
The
Application class to use in the test, this takes precedence over any application
specified in the AndroidManifest.xml. |
int |
emulateSdk
The Android SDK level to emulate.
|
String[] |
libraries
A list of folders containing Android Libraries on which this project depends.
|
String |
manifest
The Android manifest file to load; Robolectric will look relative to the current directory.
|
String |
qualifiers
Qualifiers for the resource resolution, such as "fr-normal-port-hdpi".
|
int |
reportSdk
The Android SDK level to report in Build.VERSION.SDK_INT.
|
String |
resourceDir
The Directory from which to load resources.
|
Class<?>[] |
shadows
A list of shadow classes to enable, in addition to those that are already present.
|
public abstract int emulateSdk
public abstract String manifest
AndroidManifest.xml.
If your project has no manifest or resources, use NONE.public abstract Class<? extends android.app.Application> application
Application class to use in the test, this takes precedence over any application
specified in the AndroidManifest.xml.public abstract String qualifiers
public abstract String resourceDir
res.public abstract int reportSdk
public abstract Class<?>[] shadows
public abstract String[] libraries
Copyright © 2014. All Rights Reserved.