org.robolectric.internal.bytecode.InstrumentationConfiguration Java Examples

The following examples show how to use org.robolectric.internal.bytecode.InstrumentationConfiguration. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MyTestRunner.java    From BlueSTSDK_Android with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@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();
}
 
Example #2
Source File: CustomRobolectricGradleTestRunner.java    From Dagger-2-Example with Apache License 2.0 5 votes vote down vote up
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    builder.addInstrumentedClass(Gson.class.getName());
    builder.addInstrumentedClass(GsonConverter.class.getName());
    return builder.build();
}
 
Example #3
Source File: CommCareTestRunner.java    From commcare-android with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example #4
Source File: CustomRobolectricTestRunner.java    From RxAndroidOrm with Apache License 2.0 4 votes vote down vote up
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    return builder.build();
}
 
Example #5
Source File: AndroidUnitTestRunner.java    From AndroidUnitTest with Apache License 2.0 4 votes vote down vote up
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    return builder.build();
}
 
Example #6
Source File: CustomRobolectricTestRunner.java    From Freezer with Apache License 2.0 4 votes vote down vote up
@Override
public InstrumentationConfiguration createClassLoaderConfig() {
    InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
    return builder.build();
}