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%2FEthernetSourceEntryDeserializerTest.java;h=ec83e7e4d8b3f31acf8f62ea7186b803c57860f2;hb=dc2befb3188ea11dfd0d74d375a8d3acf3619d38;hp=ed83b661ac163e3e1021214d36aabe1ba152efe9;hpb=6916d4f22823d56b391d0d45cb8544260def3431;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetSourceEntryDeserializerTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetSourceEntryDeserializerTest.java index ed83b661ac..ec83e7e4d8 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetSourceEntryDeserializerTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetSourceEntryDeserializerTest.java @@ -5,7 +5,6 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.openflowplugin.impl.protocol.deserialization.match; import static org.junit.Assert.assertEquals; @@ -22,21 +21,21 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026 public class EthernetSourceEntryDeserializerTest extends AbstractMatchEntryDeserializerTest { @Test - public void deserializeEntry() throws Exception { + public void deserializeEntry() { final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer(); final MacAddress ethernetSourceAddress = new MacAddress("00:01:02:03:04:05"); final MacAddress ethernetSourceAddressMask = new MacAddress("00:00:00:00:00:00"); writeHeader(in, false); - in.writeBytes(IetfYangUtil.INSTANCE.bytesFor(ethernetSourceAddress)); + in.writeBytes(IetfYangUtil.macAddressBytes(ethernetSourceAddress)); assertEquals(ethernetSourceAddress.getValue(), deserialize(in).getEthernetMatch().getEthernetSource().getAddress().getValue()); assertEquals(0, in.readableBytes()); writeHeader(in, true); - in.writeBytes(IetfYangUtil.INSTANCE.bytesFor(ethernetSourceAddress)); - in.writeBytes(IetfYangUtil.INSTANCE.bytesFor(ethernetSourceAddressMask)); + in.writeBytes(IetfYangUtil.macAddressBytes(ethernetSourceAddress)); + in.writeBytes(IetfYangUtil.macAddressBytes(ethernetSourceAddressMask)); final EthernetSource desAddress = deserialize(in).getEthernetMatch().getEthernetSource(); assertEquals(ethernetSourceAddress.getValue(), desAddress.getAddress().getValue());