mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix test compilation.
This commit is contained in:
parent
d4de559809
commit
e9e2e5011b
@ -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…
Reference in New Issue
Block a user