From ec0ade62668172b8ea0dcf89a6c21e98c98e4587 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 4 Apr 2023 09:18:59 +0200 Subject: [PATCH] Use ArgumentMatchers.anyList() This is type-safe alternative, use it to remove a warning. Change-Id: I5b7b7355410ecb84bfdf82fe1115b625cc16c048 Signed-off-by: Robert Varga --- .../java/org/opendaylight/protocol/pcep/spi/RegistryTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcep/spi/src/test/java/org/opendaylight/protocol/pcep/spi/RegistryTest.java b/pcep/spi/src/test/java/org/opendaylight/protocol/pcep/spi/RegistryTest.java index c691324ef8..6c681e53b5 100644 --- a/pcep/spi/src/test/java/org/opendaylight/protocol/pcep/spi/RegistryTest.java +++ b/pcep/spi/src/test/java/org/opendaylight/protocol/pcep/spi/RegistryTest.java @@ -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), -- 2.36.6