From 61a0f199511396ed3e138ba908bad060b7294101 Mon Sep 17 00:00:00 2001 From: lastpeony Date: Mon, 18 Nov 2024 12:42:10 +0300 Subject: [PATCH] fix unittest --- .../io/antmedia/webrtcandroidframework/WebRTCClientTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java b/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java index 137c2aa1..36dfefa7 100644 --- a/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java +++ b/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java @@ -267,6 +267,8 @@ public void testJoinParameters() { when(context.getString(anyInt(), Matchers.anyVararg())).thenReturn("asas"); doNothing().when(webRTCClient).init(); doNothing().when(webRTCClient).initializeAudioManager(); + doNothing().when(webRTCClient).release(true); + doReturn(true).when(wsHandler).isConnected();