diff --git a/JellyfishClient/build.gradle b/JellyfishClient/build.gradle index ccbfdb7..2ba81cc 100644 --- a/JellyfishClient/build.gradle +++ b/JellyfishClient/build.gradle @@ -100,4 +100,8 @@ dependencies { testImplementation 'junit:junit:4.13.2' testImplementation "io.mockk:mockk:1.13.2" + testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0" + testImplementation "io.mockk:mockk:1.13.2" + testImplementation 'org.khronos:opengl-api:gl1.1-android-2.1_r1' + } \ No newline at end of file diff --git a/JellyfishClient/src/test/java/jellyfishdev/org/membraneframework/rtc/test/EndpointConnectionManagerTest.kt b/JellyfishClient/src/test/java/org/membraneframework/rtc/test/EndpointConnectionManagerTest.kt similarity index 96% rename from JellyfishClient/src/test/java/jellyfishdev/org/membraneframework/rtc/test/EndpointConnectionManagerTest.kt rename to JellyfishClient/src/test/java/org/membraneframework/rtc/test/EndpointConnectionManagerTest.kt index 31bd338..ed55453 100644 --- a/JellyfishClient/src/test/java/jellyfishdev/org/membraneframework/rtc/test/EndpointConnectionManagerTest.kt +++ b/JellyfishClient/src/test/java/org/membraneframework/rtc/test/EndpointConnectionManagerTest.kt @@ -1,5 +1,6 @@ package org.membraneframework.rtc.test +import android.util.Log import io.mockk.* import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.runTest @@ -30,6 +31,13 @@ class EndpointConnectionManagerTest { mockkStatic("org.membraneframework.rtc.utils.SuspendableSdpObserverKt") mockkStatic("org.membraneframework.rtc.utils.EndpointConnectionUtilsKt") + mockkStatic(Log::class) + every { Log.v(any(), any()) } returns 0 + every { Log.d(any(), any()) } returns 0 + every { Log.i(any(), any()) } returns 0 + every { Log.e(any(), any()) } returns 0 + every { Log.println(any(), any(), any()) } returns 0 + endpointConnectionMock = mockk(relaxed = true) coEvery {