Back to project page slf4android.
The source code is released under:
MIT License
If you think the Android project slf4android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.brightinventions.slf4android.roboelectric; //from w w w .j av a 2s.co m import org.junit.runners.model.InitializationError; import org.robolectric.AndroidManifest; import org.robolectric.annotation.Config; import org.robolectric.res.Fs; public class RobolectricTestRunner extends org.robolectric.RobolectricTestRunner { public RobolectricTestRunner(Class<?> testClass) throws InitializationError { super(testClass); } @Override protected AndroidManifest getAppManifest(Config config) { String manifestPath = "main/AndroidManifest.xml"; String resPath = "main/res"; AndroidManifest manifest = new AndroidManifest(Fs.fileFromPath(manifestPath), Fs.fileFromPath(resPath)) { @Override public int getTargetSdkVersion() { return 18; } }; manifest.setPackageName("pl.brightinventions.slf4android"); return manifest; } }