Class SandboxBuilder
java.lang.Object
org.robolectric.simulator.SandboxBuilder
A Builder pattern for Robolectric Sandboxes. This also binds a
SimulatorClassLoader.JarCollection class that
encapsulates extra jars that can be used by the Robolectric ClassLoader.-
Method Summary
Modifier and TypeMethodDescriptionaddClasspathEntries(Collection<Path> jarPaths) Adds classpath entries to the builder.build()Builds and returns the AndroidSandbox.static SandboxBuilderRetrieves a new builder for Sandbox.setSdkVersion(int sdkVersion) Sets the SDK version to use.
-
Method Details
-
newBuilder
Retrieves a new builder for Sandbox. -
addClasspathEntries
Adds classpath entries to the builder. -
setSdkVersion
Sets the SDK version to use. -
build
Builds and returns the AndroidSandbox.
-