Package org.robolectric.preinstrumented
Class JarInstrumentor
java.lang.Object
org.robolectric.preinstrumented.JarInstrumentor
Runs Robolectric invokedynamic instrumentation on an android-all jar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexit(int status) CallsSystem.exit(int).protected voidinstrumentJar(File sourceJarFile, File destJarFile) Performs the JAR instrumentation.static void
-
Constructor Details
-
JarInstrumentor
public JarInstrumentor()
-
-
Method Details
-
main
- Throws:
IOExceptionClassNotFoundException
-
exit
protected void exit(int status) CallsSystem.exit(int). Overridden during tests to avoid exiting during tests. -
instrumentJar
protected void instrumentJar(File sourceJarFile, File destJarFile) throws IOException, ClassNotFoundException Performs the JAR instrumentation.- Parameters:
sourceJarFile- The source JAR to process.destJarFile- The destination JAR with the instrumented method calls.- Throws:
IOExceptionClassNotFoundException
-