From a968e380e8f77c203e58bcd9ab50d1ab13999333 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Tue, 24 Sep 2024 15:20:56 +0530 Subject: [PATCH] Improved the `CopyMoveFileHandlerTest`. --- .../kiwix/kiwixmobile/localLibrary/CopyMoveFileHandlerTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/org/kiwix/kiwixmobile/localLibrary/CopyMoveFileHandlerTest.kt b/app/src/test/java/org/kiwix/kiwixmobile/localLibrary/CopyMoveFileHandlerTest.kt index 057c12206..95b825867 100644 --- a/app/src/test/java/org/kiwix/kiwixmobile/localLibrary/CopyMoveFileHandlerTest.kt +++ b/app/src/test/java/org/kiwix/kiwixmobile/localLibrary/CopyMoveFileHandlerTest.kt @@ -19,6 +19,7 @@ package org.kiwix.kiwixmobile.localLibrary import android.app.Activity +import androidx.documentfile.provider.DocumentFile import io.mockk.Runs import io.mockk.clearAllMocks import io.mockk.every @@ -58,7 +59,7 @@ class CopyMoveFileHandlerTest { private val testDispatcher = StandardTestDispatcher() private val testScope = TestScope(testDispatcher) private val storageFile: File = mockk(relaxed = true) - private val selectedFile: File = mockk(relaxed = true) + private val selectedFile: DocumentFile = mockk(relaxed = true) private val storagePath = "storage/0/emulated/Android/media/org.kiwix.kiwixmobile" @BeforeEach