mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Fix test compilation.
This commit is contained in:
parent
d4de559809
commit
e9e2e5011b
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ import org.amshove.kluent.shouldBeEqualTo
|
|||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.matrix.android.sdk.BuildConfig
|
||||
import org.matrix.android.sdk.api.util.getApplicationInfoCompat
|
||||
import org.matrix.android.sdk.api.util.getPackageInfoCompat
|
||||
import java.lang.Exception
|
||||
|
||||
|
@ -50,7 +51,7 @@ class ComputeUserAgentUseCaseTest {
|
|||
every { context.applicationContext } returns context
|
||||
every { context.packageName } returns A_PACKAGE_NAME
|
||||
every { context.packageManager } returns packageManager
|
||||
every { packageManager.getApplicationInfo(any(), any()) } returns applicationInfo
|
||||
every { packageManager.getApplicationInfoCompat(any(), any()) } returns applicationInfo
|
||||
every { packageManager.getPackageInfoCompat(any(), any()) } returns packageInfo
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue