X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=extension%2Fopenflowplugin-extension-nicira%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fextension%2Fvendor%2Fnicira%2Fconvertor%2Fmatch%2FEthTypeConvertorTest.java;h=50d745d23808969a01b25e459262ebf4c86a76e7;hb=1aee9a9a8d8df9d3207696a98021295ae2e92ad7;hp=6e4e3a37f28ef70a87b46fe1e78b0c18d981c461;hpb=7154160cb32618d1e1cb492eef46d22a9df74014;p=openflowplugin.git diff --git a/extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthTypeConvertorTest.java b/extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthTypeConvertorTest.java index 6e4e3a37f2..50d745d238 100644 --- a/extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthTypeConvertorTest.java +++ b/extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthTypeConvertorTest.java @@ -14,7 +14,7 @@ import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; -import org.mockito.Matchers; +import org.mockito.ArgumentMatchers; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.opendaylight.openflowplugin.extension.api.ExtensionAugment; @@ -47,7 +47,7 @@ public class EthTypeConvertorTest { private EthTypeConvertor ethTypeConvertor; @Before - public void setUp() throws Exception { + public void setUp() { final NxmOfEthTypeBuilder nxmOfEthTypeBuilder = new NxmOfEthTypeBuilder() .setValue(1); @@ -56,7 +56,7 @@ public class EthTypeConvertorTest { nxAugMatchNotifUpdateFlowStatsBuilder.setNxmOfEthType(nxmOfEthTypeBuilder.build()); final Augmentation extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build(); - when(extension.augmentation(Matchers.>>any())) + when(extension.augmentation(ArgumentMatchers.any())) .thenReturn(extensionAugmentation); ethTypeConvertor = new EthTypeConvertor(); @@ -64,14 +64,14 @@ public class EthTypeConvertorTest { } @Test - public void testConvert() throws Exception { + public void testConvert() { final MatchEntry converted = ethTypeConvertor.convert(extension); Assert.assertEquals(1, ((EthTypeCaseValue)converted.getMatchEntryValue()) .getEthTypeValues().getValue().intValue()); } @Test - public void testConvert1() throws Exception { + public void testConvert1() { final EthTypeValuesBuilder ethTypeValuesBuilder = new EthTypeValuesBuilder() .setValue(Integer.valueOf(1)); final EthTypeCaseValueBuilder ethTypeCaseValueBuilder = new EthTypeCaseValueBuilder()