Package com.android.builder.testing
Class MockableJarGenerator
java.lang.Object
com.android.builder.testing.MockableJarGenerator
Given a "standard" android.jar, creates a "mockable" version, where all classes and methods
are not final. Optionally makes all methods return "default" values, instead of throwing the
infamous "Stub!" exceptions.
ATTENTION! If you change this class, please update the gradle tasks to reflect that in the generated file name (e.g. add a "v2"). This will force Gradle to re-generate the jars in existing projects.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MockableJarGenerator
public MockableJarGenerator(boolean returnDefaultValues)
-
-
Method Details
-
createMockableJar
- Throws:
IOException
-