Package org.robolectric.annotation
Class Config.Builder
java.lang.Object
org.robolectric.annotation.Config.Builder
- Enclosing class:
- Config
public static class Config.Builder extends Object
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends Application>
application
protected String
assetDir
protected float
fontScale
protected String[]
instrumentedPackages
protected String[]
libraries
protected String
manifest
protected int
maxSdk
protected int
minSdk
protected String
packageName
protected String
qualifiers
protected String
resourceDir
protected int[]
sdk
protected Class<?>[]
shadows
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Config.Implementation
build()
static Config.Builder
defaults()
This returns actual default values where they exist, in the sense that we could use the values, rather than markers like-1
or--default
.static boolean
isDefaultApplication(Class<? extends Application> clazz)
Config.Builder
overlay(Config overlayConfig)
Config.Builder
setApplication(Class<? extends Application> application)
Config.Builder
setAssetDir(String assetDir)
Config.Builder
setFontScale(float fontScale)
Config.Builder
setInstrumentedPackages(String... instrumentedPackages)
Config.Builder
setLibraries(String... libraries)
Config.Builder
setManifest(String manifest)
Config.Builder
setMaxSdk(int maxSdk)
Config.Builder
setMinSdk(int minSdk)
Config.Builder
setPackageName(String packageName)
Config.Builder
setQualifiers(String qualifiers)
Config.Builder
setResourceDir(String resourceDir)
Config.Builder
setSdk(int... sdk)
Config.Builder
setShadows(Class<?>... shadows)
-
Field Details
-
sdk
protected int[] sdk -
minSdk
protected int minSdk -
maxSdk
protected int maxSdk -
fontScale
protected float fontScale -
manifest
-
qualifiers
-
packageName
-
resourceDir
-
assetDir
-
shadows
-
instrumentedPackages
-
application
-
libraries
-
-
Constructor Details
-
Method Details
-
setSdk
-
setMinSdk
-
setMaxSdk
-
setManifest
-
setQualifiers
-
setPackageName
-
setResourceDir
-
setFontScale
-
setAssetDir
-
setShadows
-
setInstrumentedPackages
-
setApplication
-
setLibraries
-
defaults
This returns actual default values where they exist, in the sense that we could use the values, rather than markers like-1
or--default
. -
overlay
-
build
-
isDefaultApplication
-