mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Using Robolectric to fix the tests
This commit is contained in:
parent
1016d691f0
commit
9df4860eb5
@ -5,8 +5,9 @@ import org.hamcrest.core.IsEqual.equalTo
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
import org.junit.runners.Parameterized
|
import org.junit.runners.Parameterized
|
||||||
|
import org.robolectric.ParameterizedRobolectricTestRunner
|
||||||
|
|
||||||
@RunWith(Parameterized::class)
|
@RunWith(ParameterizedRobolectricTestRunner::class)
|
||||||
class SnodeVersionTest(
|
class SnodeVersionTest(
|
||||||
private val v1: String,
|
private val v1: String,
|
||||||
private val v2: String,
|
private val v2: String,
|
||||||
@ -15,7 +16,7 @@ class SnodeVersionTest(
|
|||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
@Parameterized.Parameters(name = "{index}: testVersion({0},{1}) = (equalTo: {2}, lessThan: {3})")
|
@ParameterizedRobolectricTestRunner.Parameters(name = "{index}: testVersion({0},{1}) = (equalTo: {2}, lessThan: {3})")
|
||||||
fun data(): Collection<Array<Any>> = listOf(
|
fun data(): Collection<Array<Any>> = listOf(
|
||||||
arrayOf("1", "1", true, false),
|
arrayOf("1", "1", true, false),
|
||||||
arrayOf("1", "2", false, true),
|
arrayOf("1", "2", false, true),
|
||||||
|
Loading…
Reference in New Issue
Block a user