use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispListAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispListAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
listAddressCodec = context.codec(LispListAddress.class);
assertThat("List address codec should not be null", listAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispMulticastAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispMulticastAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
multicastAddressCodec = context.codec(LispMulticastAddress.class);
assertThat("Multicast address codec should not be null", multicastAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispAsAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispAsAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
asAddressCodec = context.codec(LispAsAddress.class);
assertThat("AS address codec should not be null", asAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispNatAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispNatAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
natAddressCodec = context.codec(LispNatAddress.class);
assertThat("NAT address codec should not be null", natAddressCodec, notNullValue());
}
use of org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator in project onos by opennetworkinglab.
the class LispGcAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the LispGcAddress codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new LispMappingExtensionCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new LispMappingExtensionCodecContextAdapter(registrator.codecService);
gcAddressCodec = context.codec(LispGcAddress.class);
assertThat("Geo Coordinate address codec should not be null", gcAddressCodec, notNullValue());
}
Aggregations