use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev200120.esi.Esi in project bgpcep by opendaylight.
the class LanParserTest method parserTest.
@Test
public void parserTest() {
final ByteBuf buff = Unpooled.buffer(VALUE_SIZE);
this.parser.serializeEsi(LAN_AUT_GEN_CASE, buff);
assertArrayEquals(RESULT, ByteArray.getAllBytes(buff));
final Esi acResult = this.parser.parseEsi(Unpooled.wrappedBuffer(VALUE));
assertEquals(LAN_AUT_GEN_CASE, acResult);
final Esi acmResult = this.parser.serializeEsi(createLanCont());
assertEquals(LAN_AUT_GEN_CASE, acmResult);
}
Aggregations