Merge "Rework bit-copying functions and re-enable tests"
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / protocol / deserialization / match / ArpTargetTransportAddressEntryDeserializerTest.java
index 67d1b7200c2370f69fefc5cdb9247520ce296a8a..a783c9b67b27c77abc0a1ed5f25d3a8edabd177e 100644 (file)
@@ -36,7 +36,7 @@ public class ArpTargetTransportAddressEntryDeserializerTest extends AbstractMatc
         in.writeBytes(IetfInetUtil.INSTANCE.ipv4AddressBytes(new Ipv4Address(addressParts.next())));
 
         assertEquals(arpTargetTransportAddressNoMask.getValue(),
-                ArpMatch.class.cast(deserialize(in).getLayer3Match()).getArpTargetTransportAddress().getValue());
+                ((ArpMatch) deserialize(in).getLayer3Match()).getArpTargetTransportAddress().getValue());
         assertEquals(0, in.readableBytes());
 
         writeHeader(in, true);
@@ -45,7 +45,7 @@ public class ArpTargetTransportAddressEntryDeserializerTest extends AbstractMatc
         in.writeBytes(MatchConvertorUtil.extractIpv4Mask(addressParts));
 
         final Ipv4Prefix desAddress =
-                ArpMatch.class.cast(deserialize(in).getLayer3Match()).getArpTargetTransportAddress();
+                ((ArpMatch) deserialize(in).getLayer3Match()).getArpTargetTransportAddress();
         assertEquals(arpTargetTransportAddress.getValue(), desAddress.getValue());
         assertEquals(0, in.readableBytes());
     }