Use ArgumentMatchers.anyList() 07/105207/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Apr 2023 07:18:59 +0000 (09:18 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Apr 2023 07:18:59 +0000 (09:18 +0200)
This is type-safe alternative, use it to remove a warning.

Change-Id: I5b7b7355410ecb84bfdf82fe1115b625cc16c048
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
pcep/spi/src/test/java/org/opendaylight/protocol/pcep/spi/RegistryTest.java

index c691324ef8b7d2bf3a826df1f07bb68ba8c043ed..6c681e53b5f0aa6459908b1d4d232aab5df7fac6 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.protocol.pcep.spi;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyBoolean;
+import static org.mockito.ArgumentMatchers.anyList;
 import static org.mockito.Mockito.doNothing;
 import static org.mockito.Mockito.doReturn;
 
@@ -118,7 +119,7 @@ public class RegistryTest {
             any(ByteBuf.class));
         doNothing().when(this.objectSerializer).serializeObject(any(Object.class), any(ByteBuf.class));
 
-        doReturn(null).when(this.msgParser).parseMessage(any(ByteBuf.class), any(List.class));
+        doReturn(null).when(this.msgParser).parseMessage(any(ByteBuf.class), anyList());
         doNothing().when(this.msgSerializer).serializeMessage(any(Message.class), any(ByteBuf.class));
 
         doNothing().when(this.labelSerializer).serializeLabel(anyBoolean(), anyBoolean(), any(LabelType.class),