Java源码示例:org.robolectric.internal.bytecode.InstrumentationConfiguration

示例1
@NonNull
@Override
public InstrumentationConfiguration createClassLoaderConfig(FrameworkMethod config) {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    for(Class c : CUSTOM_SHADOW_TARGETS)
        builder.addInstrumentedClass(c.getName());
    return builder.build();
}
 
示例2
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    builder.addInstrumentedClass(Gson.class.getName());
    builder.addInstrumentedClass(GsonConverter.class.getName());
    return builder.build();
}
 
示例3
@Override
public InstrumentationConfiguration createClassLoaderConfig(final FrameworkMethod method) {
    InstrumentationConfiguration.Builder builder = new InstrumentationConfiguration.Builder(super.createClassLoaderConfig(method));
    builder.addInstrumentedPackage("net.sqlcipher.database.SQLiteDatabase");
    builder.addInstrumentedPackage("org.commcare.models.encryption");
    return builder.build();
}
 
示例4
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    return builder.build();
}
 
示例5
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    return builder.build();
}
 
示例6
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    return builder.build();
}