Package org.robolectric.shadows
Class ShadowDexFile
- java.lang.Object
-
- org.robolectric.shadows.ShadowDexFile
-
@Implements(dalvik.system.DexFile.class) public class ShadowDexFile extends Object
Shadow implementation of dalvik.system.Dexfile.
-
-
Constructor Summary
Constructors Constructor Description ShadowDexFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static booleanisDexOptNeeded(String fileName)static voidreset()static voidsetIsDexOptNeeded(boolean isDexOptNeeded)Sets the value to be returned when isDexOptNeeded() is called with any argument.static voidsetIsDexOptNeededError(Throwable error)Sets the throwable that will be thrown when isDexOptNeeded() is called.
-
-
-
Method Detail
-
isDexOptNeeded
@Implementation protected static boolean isDexOptNeeded(String fileName) throws Throwable
- Throws:
Throwable
-
setIsDexOptNeeded
public static void setIsDexOptNeeded(boolean isDexOptNeeded)
Sets the value to be returned when isDexOptNeeded() is called with any argument.
-
setIsDexOptNeededError
public static void setIsDexOptNeededError(Throwable error)
Sets the throwable that will be thrown when isDexOptNeeded() is called. isDexOptNeeded() won't throw if the error is null.
-
reset
@Resetter public static void reset()
-
-