Fix tests after SDK bump

This commit is contained in:
José Rebelo 2022-09-10 21:38:57 +01:00 committed by Gitea
parent ead65ffd7d
commit 83a2b10c03
2 changed files with 4 additions and 4 deletions

View File

@ -222,9 +222,10 @@ dependencies {
// testImplementation "ch.qos.logback:logback-classic:1.1.3"
// testImplementation "ch.qos.logback:logback-core:1.1.3"
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
testImplementation "junit:junit:4.12"
testImplementation "junit:junit:4.13.2"
testImplementation "org.mockito:mockito-core:1.10.19"
testImplementation "org.robolectric:robolectric:4.2.1"
testImplementation "org.robolectric:robolectric:4.8.2"
testImplementation "org.hamcrest:hamcrest-library:1.3"
testImplementation "com.google.code.gson:gson:2.8.6"
implementation fileTree(dir: "libs", include: ["*.jar"])

View File

@ -34,8 +34,7 @@ import static nodomain.freeyourgadget.gadgetbridge.Logging.PROP_LOGFILES_DIR;
* directory.
*/
@RunWith(RobolectricTestRunner.class)
@Config(sdk = 19)
// need sdk 19 because "WITHOUT ROWID" is not supported in robolectric/sqlite4java
@Config(sdk = 21)
public abstract class TestBase {
protected static File logFilesDir;