*/
package org.opendaylight.lispflowmapping.serializer.address;
+import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
-import junitx.framework.ArrayAssert;
import org.junit.Test;
import org.opendaylight.lispflowmapping.lisp.serializer.address.LispAddressSerializer;
import org.opendaylight.lispflowmapping.lisp.serializer.exception.LispSerializationException;
+ "0A 00 00 10 "
+ "00 00 00 01 AA BB CC DD " // IPv4
+ "00 00 00 01 11 22 33 44"); // IPv4
- ArrayAssert.assertEquals(expectedBuf.array(), buf.array());
+ assertArrayEquals(expectedBuf.array(), buf.array());
}
@Test
LispAddressSerializer.getInstance().serialize(buf, rb.build());
ByteBuffer expectedBuf = hexToByteBuffer("40 03 00 00 "
+ "0A 00 00 00");
- ArrayAssert.assertEquals(expectedBuf.array(), buf.array());
+ assertArrayEquals(expectedBuf.array(), buf.array());
}
}