|
|
@ -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 { |
|
|
|