X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Fprotocol%2Fserialization%2Fmatch%2FIpv4ArbitraryBitMaskSourceEntrySerializerTest.java;h=580b3e5b68fc472efe4bb7d8b74769e0c6dabfa3;hb=08614b02699a03ff8604f3bf7531f0575134cf90;hp=89166907c73c5ebb075928449f966e2cecee731c;hpb=3a44a80f20e2ad3b9683a8ef2c459f96a86c53fb;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4ArbitraryBitMaskSourceEntrySerializerTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4ArbitraryBitMaskSourceEntrySerializerTest.java index 89166907c7..580b3e5b68 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4ArbitraryBitMaskSourceEntrySerializerTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4ArbitraryBitMaskSourceEntrySerializerTest.java @@ -5,13 +5,11 @@ * 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.serialization.match; import static org.junit.Assert.assertArrayEquals; import org.junit.Test; -import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants; import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DottedQuad; @@ -20,7 +18,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.match.layer._3.match.Ipv4MatchArbitraryBitMaskBuilder; public class Ipv4ArbitraryBitMaskSourceEntrySerializerTest extends AbstractMatchEntrySerializerTest { - @Test public void testSerialize() { final Ipv4Address ipv4Address = new Ipv4Address("192.168.10.0"); @@ -58,7 +55,7 @@ public class Ipv4ArbitraryBitMaskSourceEntrySerializerTest extends AbstractMatch @Override protected short getLength() { - return EncodeConstants.SIZE_OF_INT_IN_BYTES; + return Integer.BYTES; } @Override @@ -70,5 +67,4 @@ public class Ipv4ArbitraryBitMaskSourceEntrySerializerTest extends AbstractMatch protected int getOxmClassCode() { return OxmMatchConstants.OPENFLOW_BASIC_CLASS; } - }