use of org.onosproject.drivers.lisp.extensions.LispTeAddress in project onos by opennetworkinglab.
the class LispTeAddressCodecTest method testLispTeAddressEncode.
/**
* Tests encoding of a LispTeAddress object.
*/
@Test
public void testLispTeAddressEncode() {
LispTeAddress address = new LispTeAddress.Builder().withTeRecords(ImmutableList.of(record1, record2)).build();
ObjectNode addressJson = teAddressCodec.encode(address, context);
assertThat("errors in encoding Traffic Engineering address JSON", addressJson, LispTeAddressJsonMatcher.matchesTeAddress(address));
}
Aggregations