Browse Source

Init the mockked Bitmap only once.

feature/jme/open-room-member-details-when-clicking-on-user-data
Benoit Marty 1 year ago
parent
commit
5cf17a432f
  1. 11
      features/rageshake/impl/src/test/kotlin/io/element/android/features/rageshake/impl/detection/RageshakeDetectionPresenterTest.kt

11
features/rageshake/impl/src/test/kotlin/io/element/android/features/rageshake/impl/detection/RageshakeDetectionPresenterTest.kt

@ -31,11 +31,20 @@ import io.element.android.libraries.matrix.test.AN_EXCEPTION
import io.mockk.mockk import io.mockk.mockk
import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.first
import kotlinx.coroutines.test.runTest import kotlinx.coroutines.test.runTest
import org.junit.BeforeClass
import org.junit.Test import org.junit.Test
class RageshakeDetectionPresenterTest { class RageshakeDetectionPresenterTest {
private val aBitmap: Bitmap = mockk() companion object {
private lateinit var aBitmap: Bitmap
@BeforeClass
@JvmStatic
fun initBitmap() {
aBitmap = mockk()
}
}
@Test @Test
fun `present - initial state`() = runTest { fun `present - initial state`() = runTest {

Loading…
Cancel
Save