use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispAppDataAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispAppDataAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
appDataAddressCodec = context.codec(LispAppDataAddress.class);
assertThat(appDataAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispSegmentAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispSegmentAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
segmentAddressCodec = context.codec(LispSegmentAddress.class);
assertThat("segment address codec should not be null", segmentAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispTeAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispTeAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
teAddressCodec = context.codec(LispTeAddress.class);
assertThat("Traffic Engineering address codec should not be null", teAddressCodec, notNullValue());
record1 = new LispTeAddress.TeRecord.Builder().withIsLookup(LOOKUP_1).withIsRlocProbe(RLOC_PROBE_1).withIsStrict(STRICT_1).withRtrRlocAddress(MappingAddresses.ipv4MappingAddress(IPV4_ADDRESS_1)).build();
record2 = new LispTeAddress.TeRecord.Builder().withIsLookup(LOOKUP_2).withIsRlocProbe(RLOC_PROBE_2).withIsStrict(STRICT_2).withRtrRlocAddress(MappingAddresses.ipv4MappingAddress(IPV4_ADDRESS_2)).build();
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispNonceAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispNonceAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
nonceAddressCodec = context.codec(LispNonceAddress.class);
assertThat("nonce address codec should not be null", nonceAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispSrcDstAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispSrcDstAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
srcDstAddressCodec = context.codec(LispSrcDstAddress.class);
assertThat("Source and Destination address codec should not be null", srcDstAddressCodec, notNullValue());
}
Aggregations