OPNFLWPLUG-1032: Neon-MRI: Bump odlparent, yangtools, mdsal
[openflowplugin.git] / extension / openflowjava-extension-nicira / src / test / java / org / opendaylight / openflowjava / nx / codec / action / RegLoad2CodecTest.java
index ec07c1f8365a2a07e564b031b8e66cd7f4b5abcd..3d4f1d79a9a455a70cd4ec1679cc00fb7e594a3b 100644 (file)
@@ -10,7 +10,7 @@ package org.opendaylight.openflowjava.nx.codec.action;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertSame;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.doNothing;
 import static org.mockito.Mockito.when;
 
@@ -80,7 +80,7 @@ public class RegLoad2CodecTest {
         final MatchEntry matchEntry = new MatchEntryBuilder().build();
         when(deserializerRegistry.getDeserializer(key)).thenReturn(ofDeserializer);
         when(ofDeserializer.deserialize(byteBuf)).thenAnswer(invocationOnMock -> {
-            invocationOnMock.getArgumentAt(0, ByteBuf.class).skipBytes(8);
+            invocationOnMock.<ByteBuf>getArgument(0).skipBytes(8);
             return matchEntry;
         });