mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-27 09:01:38 +01:00
Fix tests after SDK bump
This commit is contained in:
parent
ead65ffd7d
commit
83a2b10c03
@ -222,9 +222,10 @@ dependencies {
|
|||||||
// testImplementation "ch.qos.logback:logback-classic:1.1.3"
|
// testImplementation "ch.qos.logback:logback-classic:1.1.3"
|
||||||
// testImplementation "ch.qos.logback:logback-core:1.1.3"
|
// testImplementation "ch.qos.logback:logback-core:1.1.3"
|
||||||
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
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.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"
|
testImplementation "com.google.code.gson:gson:2.8.6"
|
||||||
|
|
||||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||||
|
@ -34,8 +34,7 @@ import static nodomain.freeyourgadget.gadgetbridge.Logging.PROP_LOGFILES_DIR;
|
|||||||
* directory.
|
* directory.
|
||||||
*/
|
*/
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
@Config(sdk = 19)
|
@Config(sdk = 21)
|
||||||
// need sdk 19 because "WITHOUT ROWID" is not supported in robolectric/sqlite4java
|
|
||||||
public abstract class TestBase {
|
public abstract class TestBase {
|
||||||
protected static File logFilesDir;
|
protected static File logFilesDir;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user