Package org.robolectric.annotation
Class Config.Builder
- java.lang.Object
-
- org.robolectric.annotation.Config.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends Application>
application
protected String
assetDir
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
-
Method Summary
-
-
-
Field Detail
-
sdk
protected int[] sdk
-
minSdk
protected int minSdk
-
maxSdk
protected int maxSdk
-
manifest
protected String manifest
-
qualifiers
protected String qualifiers
-
packageName
protected String packageName
-
resourceDir
protected String resourceDir
-
assetDir
protected String assetDir
-
shadows
protected Class<?>[] shadows
-
instrumentedPackages
protected String[] instrumentedPackages
-
application
protected Class<? extends Application> application
-
libraries
protected String[] libraries
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(Config config)
-
-
Method Detail
-
setSdk
public Config.Builder setSdk(int... sdk)
-
setMinSdk
public Config.Builder setMinSdk(int minSdk)
-
setMaxSdk
public Config.Builder setMaxSdk(int maxSdk)
-
setManifest
public Config.Builder setManifest(String manifest)
-
setQualifiers
public Config.Builder setQualifiers(String qualifiers)
-
setPackageName
public Config.Builder setPackageName(String packageName)
-
setResourceDir
public Config.Builder setResourceDir(String resourceDir)
-
setAssetDir
public Config.Builder setAssetDir(String assetDir)
-
setShadows
public Config.Builder setShadows(Class<?>... shadows)
-
setInstrumentedPackages
public Config.Builder setInstrumentedPackages(String... instrumentedPackages)
-
setApplication
public Config.Builder setApplication(Class<? extends Application> application)
-
setLibraries
public Config.Builder setLibraries(String... libraries)
-
defaults
public 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
.
-
overlay
public Config.Builder overlay(Config overlayConfig)
-
build
public Config.Implementation build()
-
isDefaultApplication
public static boolean isDefaultApplication(Class<? extends Application> clazz)
-
-