import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid;
/**
+ * Test class for Service Path Serializer.
+ *
* @author Lorand Jakab
*
*/
@Test
public void deserialize__Simple() throws Exception {
- Eid address = LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 " +
- "11 00 00 04 " +
- "AA BB CC FF"),
+ Eid address = LispAddressSerializer.getInstance().deserializeEid(hexToByteBuffer("40 03 00 00 "
+ + "11 00 00 04 "
+ + "AA BB CC FF"),
new LispAddressSerializerContext(null));
assertEquals(ServicePathLcaf.class, address.getAddressType());
ServicePath sp = (ServicePath) address.getAddress();
ByteBuffer buf = ByteBuffer.allocate(LispAddressSerializer.getInstance().getAddressSize(eid));
LispAddressSerializer.getInstance().serialize(buf, eid);
- ByteBuffer expectedBuf = hexToByteBuffer("40 03 00 00 " +
- "11 00 00 04 " +
- "00 00 01 FF");
+ ByteBuffer expectedBuf = hexToByteBuffer("40 03 00 00 "
+ + "11 00 00 04 "
+ + "00 00 01 FF");
ArrayAssert.assertEquals(expectedBuf.array(), buf.array());
}
}