Fix org.mockito.Matchers deprecation warnings in DirectRTCClientTest.

ArgumentMatchers is the new name of the class. Also, we don't need to
pass a class to the isNotNull matcher.

BUG=webrtc:6558
R=magjed@webrtc.org

Review-Url: https://codereview.webrtc.org/2440433002
Cr-Commit-Position: refs/heads/master@{#14706}
This commit is contained in:
sakal
2016-10-20 05:49:10 -07:00
committed by Commit bot
parent 201dfe90a7
commit 5f70d3b559

View File

@ -13,8 +13,8 @@ package org.appspot.apprtc;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.isNotNull;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.isNotNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.timeout;
import static org.mockito.Mockito.verify;
@ -110,6 +110,8 @@ public class DirectRTCClientTest {
}
}
// TODO(sakal): Replace isNotNull(class) with isNotNull() once Java 8 is used.
@SuppressWarnings("deprecation")
@Test
public void testDirectRTCClient() {
server.connectToRoom(new AppRTCClient.RoomConnectionParameters(ROOM_URL, "0.0.0.0", LOOPBACK));