From f19c503b83a5e9ac7205b47152e86159fe50b54a Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Tue, 21 Jun 2016 10:21:39 +0200 Subject: HONEYCOMB-64: Add ipv4 netmask support Supported contiguous netmask only (strictly, only leading 1s are allowed) Update postman collection Change-Id: I989bbd013227bc3e1eda0861241543db0cdbf656 Signed-off-by: Tibor Sirovatka Signed-off-by: Marek Gradzki --- .../v3po/translate/v3po/util/TranslateUtilsTest.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'v3po/vpp-translate-utils/src/test/java/io/fd') diff --git a/v3po/vpp-translate-utils/src/test/java/io/fd/honeycomb/v3po/translate/v3po/util/TranslateUtilsTest.java b/v3po/vpp-translate-utils/src/test/java/io/fd/honeycomb/v3po/translate/v3po/util/TranslateUtilsTest.java index ba3861b99..89e7d9d89 100644 --- a/v3po/vpp-translate-utils/src/test/java/io/fd/honeycomb/v3po/translate/v3po/util/TranslateUtilsTest.java +++ b/v3po/vpp-translate-utils/src/test/java/io/fd/honeycomb/v3po/translate/v3po/util/TranslateUtilsTest.java @@ -1,5 +1,6 @@ package io.fd.honeycomb.v3po.translate.v3po.util; +import static io.fd.honeycomb.v3po.translate.v3po.util.TranslateUtils.reverseBytes; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; @@ -19,16 +20,6 @@ public class TranslateUtilsTest { assertEquals(ipv4Addr, ipv4AddressNoZone); } - private byte[] reverseBytes(final byte[] bytes) { - final byte[] reversed = new byte[bytes.length]; - int i = 1; - for (byte aByte : bytes) { - reversed[bytes.length - i++] = aByte; - } - - return reversed; - } - @Test public void testToString() { final byte[] expected = "test".getBytes(); -- cgit 1.2.3-korg