Java Code Examples for org.robolectric.annotation.Config#manifest()

The following examples show how to use org.robolectric.annotation.Config#manifest() . 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 Project: Moxy   File: GithubSampleTestRunner.java    License: MIT License 6 votes vote down vote up
@Override
public Config getConfig(@NonNull Method method) {
	final Config defaultConfig = super.getConfig(method);
	return new Config.Implementation(
			new int[]{SDK_EMULATE_LEVEL},
			defaultConfig.manifest(),
			defaultConfig.qualifiers(),
			defaultConfig.packageName(),
			defaultConfig.resourceDir(),
			defaultConfig.assetDir(),
			defaultConfig.shadows(),
			defaultConfig.instrumentedPackages(),
			defaultConfig.application(),
			defaultConfig.libraries(),
			defaultConfig.constants() == Void.class ? BuildConfig.class : defaultConfig.constants()
	);
}
 
Example 2
@Override
public Config getConfig(@NonNull Method method) {
    final Config defaultConfig = super.getConfig(method);
    return new Config.Implementation(
            new int[]{SDK_EMULATE_LEVEL},
            defaultConfig.manifest(),
            defaultConfig.qualifiers(),
            defaultConfig.packageName(),
            defaultConfig.abiSplit(),
            defaultConfig.resourceDir(),
            defaultConfig.assetDir(),
            defaultConfig.buildDir(),
            defaultConfig.shadows(),
            defaultConfig.instrumentedPackages(),
            ForageUnitTestApplication.class,
            defaultConfig.libraries(),
            defaultConfig.constants() == Void.class ? BuildConfig.class : defaultConfig.constants()
    );
}
 
Example 3
@Override
public Config getConfig(@NonNull Method method) {
    final Config defaultConfig = super.getConfig(method);
    return new Config.Implementation(
            new int[]{SDK_EMULATE_LEVEL},
            defaultConfig.manifest(),
            defaultConfig.qualifiers(),
            defaultConfig.packageName(),
            defaultConfig.abiSplit(),
            defaultConfig.resourceDir(),
            defaultConfig.assetDir(),
            defaultConfig.buildDir(),
            defaultConfig.shadows(),
            defaultConfig.instrumentedPackages(),
            ForageUnitTestApplication.class,
            defaultConfig.libraries(),
            defaultConfig.constants() == Void.class ? BuildConfig.class : defaultConfig.constants()
    );
}