Search in sources :

Example 1 with ShadowDexFile

use of cucumber.runtime.android.shadow.ShadowDexFile in project cucumber-jvm by cucumber.

the class DexClassFinderTest method setDexFileEntries.

private void setDexFileEntries(final Class... entryClasses) throws NoSuchFieldException, IllegalAccessException {
    final Field roboData = DexFile.class.getDeclaredField("__robo_data__");
    final ShadowDexFile shadowDexFile = (ShadowDexFile) roboData.get(dexFile);
    shadowDexFile.setEntries(classToName(entryClasses));
}
Also used : ShadowDexFile(cucumber.runtime.android.shadow.ShadowDexFile) Field(java.lang.reflect.Field)

Aggregations

ShadowDexFile (cucumber.runtime.android.shadow.ShadowDexFile)1 Field (java.lang.reflect.Field)1