Package org.robolectric.shadows
Class ShadowDexFile
java.lang.Object
org.robolectric.shadows.ShadowDexFile
Shadow implementation of dalvik.system.Dexfile.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
isDexOptNeeded
(String fileName) static void
reset()
static void
setIsDexOptNeeded
(boolean isDexOptNeeded) Sets the value to be returned when isDexOptNeeded() is called with any argument.static void
setIsDexOptNeededError
(Throwable error) Sets the throwable that will be thrown when isDexOptNeeded() is called.
-
Constructor Details
-
ShadowDexFile
public ShadowDexFile()
-
-
Method Details
-
isDexOptNeeded
- Throws:
Throwable
-
setIsDexOptNeeded
public static void setIsDexOptNeeded(boolean isDexOptNeeded) Sets the value to be returned when isDexOptNeeded() is called with any argument. -
setIsDexOptNeededError
Sets the throwable that will be thrown when isDexOptNeeded() is called. isDexOptNeeded() won't throw if the error is null. -
reset
-