Bump upstreams
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / protocol / deserialization / match / Ipv6SourceEntryDeserializerTest.java
index 46a3951bb1259ee9da10ba83268ff92a0321ba81..abca2f3e33085e6a3c9319ad5ea0485d3bfa3a69 100644 (file)
@@ -23,15 +23,15 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6SourceEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv6Prefix address = new Ipv6Prefix("fe80::200:f8ff:fe21:67cf/30");
 
         writeHeader(in, true);
-        in.writeBytes(IetfInetUtil.INSTANCE.ipv6AddressBytes(IpConversionUtil.extractIpv6Address(address)));
+        in.writeBytes(IetfInetUtil.ipv6AddressBytes(IpConversionUtil.extractIpv6Address(address)));
         in.writeBytes(IpConversionUtil.convertIpv6PrefixToByteArray(IpConversionUtil.extractIpv6Prefix(address)));
 
-        final Ipv6Match match = Ipv6Match.class.cast(deserialize(in).getLayer3Match());
+        final Ipv6Match match = (Ipv6Match) deserialize(in).getLayer3Match();
 
         assertEquals(address.getValue(), match.getIpv6Source().getValue());
         assertEquals(0, in.readableBytes());