From 01f7c47a130df077692bd45a0cbb9a8e07cfc239 Mon Sep 17 00:00:00 2001 From: burak-58 Date: Thu, 23 Nov 2023 13:32:33 +0300 Subject: [PATCH] improve test --- .../io/antmedia/webrtcandroidframework/WebRTCClientTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bc6eb2ca..341705d8 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 @@ -901,12 +901,12 @@ public void testCreatePeerConnection() { doNothing().when(webRTCClient).createMediaConstraintsInternal(); doNothing().when(webRTCClient).createPeerConnectionInternal(streamId); doNothing().when(webRTCClient).maybeCreateAndStartRtcEventLog(streamId); + doNothing().when(webRTCClient).reportError(anyString(), anyString()); webRTCClient.createPeerConnection(streamId); verify(webRTCClient, never()).reportError(eq(streamId), anyString()); - doNothing().when(webRTCClient).reportError(anyString(), anyString()); doThrow(new NullPointerException()).when(webRTCClient).createMediaConstraintsInternal(); webRTCClient.createPeerConnection(streamId); verify(webRTCClient, timeout(10000)).reportError(eq(streamId), anyString());