From 184068691939ff3247da160947e46bffcc95e12b Mon Sep 17 00:00:00 2001 From: Sean Mac Gillicuddy Date: Wed, 22 Apr 2020 16:14:30 +0100 Subject: [PATCH] #1659 Autoload next video - fix test initialisation --- .idea/inspectionProfiles/kiwixAndroidInspections.xml | 4 +++- .../java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.idea/inspectionProfiles/kiwixAndroidInspections.xml b/.idea/inspectionProfiles/kiwixAndroidInspections.xml index 2f014f407..49dd2a8e3 100644 --- a/.idea/inspectionProfiles/kiwixAndroidInspections.xml +++ b/.idea/inspectionProfiles/kiwixAndroidInspections.xml @@ -364,7 +364,9 @@ - + + + diff --git a/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt b/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt index 8e1a95e04..4c5f4a949 100644 --- a/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt +++ b/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt @@ -18,6 +18,7 @@ package org.kiwix.kiwixmobile.core +import android.net.Uri import io.mockk.clearAllMocks import io.mockk.every import io.mockk.mockk @@ -58,6 +59,8 @@ class StorageObserverTest { setScheduler(Schedulers.trampoline()) mockkStatic(CoreApp::class) every { CoreApp.getInstance().packageName } returns "pkg" + mockkStatic(Uri::class) + every { Uri.parse(any()).toString() } returns "pkg" zimFileReader = mockk() }