X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Fprotocol%2Fdeserialization%2Fmatch%2FIpv6SourceEntryDeserializerTest.java;h=abca2f3e33085e6a3c9319ad5ea0485d3bfa3a69;hb=refs%2Fchanges%2F71%2F106571%2F8;hp=46a3951bb1259ee9da10ba83268ff92a0321ba81;hpb=0e246fb02d714bacd787f880c7ab50ded9033592;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6SourceEntryDeserializerTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6SourceEntryDeserializerTest.java index 46a3951bb1..abca2f3e33 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6SourceEntryDeserializerTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6SourceEntryDeserializerTest.java @@ -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());