Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed May 6, 2024
1 parent 9dc4f28 commit 76cc9e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JellyfishClient/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

}
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 76cc9e6

Please sign in to comment.