From 9df4860eb55f94ebb52cf13b1da013219a5207b7 Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Fri, 16 Aug 2024 17:54:57 +1000 Subject: [PATCH] Using Robolectric to fix the tests --- .../test/java/org/session/libsignal/utilities/SnodeTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/test/java/org/session/libsignal/utilities/SnodeTest.kt b/app/src/test/java/org/session/libsignal/utilities/SnodeTest.kt index aed54fd0d3..8a1aaa1301 100644 --- a/app/src/test/java/org/session/libsignal/utilities/SnodeTest.kt +++ b/app/src/test/java/org/session/libsignal/utilities/SnodeTest.kt @@ -5,8 +5,9 @@ import org.hamcrest.core.IsEqual.equalTo import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.Parameterized +import org.robolectric.ParameterizedRobolectricTestRunner -@RunWith(Parameterized::class) +@RunWith(ParameterizedRobolectricTestRunner::class) class SnodeVersionTest( private val v1: String, private val v2: String, @@ -15,7 +16,7 @@ class SnodeVersionTest( ) { companion object { @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> = listOf( arrayOf("1", "1", true, false), arrayOf("1", "2", false, true),