mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
Improved the CopyMoveFileHandlerTest
.
This commit is contained in:
parent
c570fc918a
commit
a968e380e8
@ -19,6 +19,7 @@
|
|||||||
package org.kiwix.kiwixmobile.localLibrary
|
package org.kiwix.kiwixmobile.localLibrary
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
|
import androidx.documentfile.provider.DocumentFile
|
||||||
import io.mockk.Runs
|
import io.mockk.Runs
|
||||||
import io.mockk.clearAllMocks
|
import io.mockk.clearAllMocks
|
||||||
import io.mockk.every
|
import io.mockk.every
|
||||||
@ -58,7 +59,7 @@ class CopyMoveFileHandlerTest {
|
|||||||
private val testDispatcher = StandardTestDispatcher()
|
private val testDispatcher = StandardTestDispatcher()
|
||||||
private val testScope = TestScope(testDispatcher)
|
private val testScope = TestScope(testDispatcher)
|
||||||
private val storageFile: File = mockk(relaxed = true)
|
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"
|
private val storagePath = "storage/0/emulated/Android/media/org.kiwix.kiwixmobile"
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
|
Loading…
x
Reference in New Issue
Block a user