Search in sources :

Example 31 with CodecManager

use of org.onosproject.codec.impl.CodecManager 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());
}
Also used : LispAsAddress(org.onosproject.drivers.lisp.extensions.LispAsAddress) CodecManager(org.onosproject.codec.impl.CodecManager) LispMappingExtensionCodecRegistrator(org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator) Before(org.junit.Before)

Example 32 with CodecManager

use of org.onosproject.codec.impl.CodecManager 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());
}
Also used : LispGcAddress(org.onosproject.drivers.lisp.extensions.LispGcAddress) CodecManager(org.onosproject.codec.impl.CodecManager) LispMappingExtensionCodecRegistrator(org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator) Before(org.junit.Before)

Example 33 with CodecManager

use of org.onosproject.codec.impl.CodecManager 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());
}
Also used : LispListAddress(org.onosproject.drivers.lisp.extensions.LispListAddress) CodecManager(org.onosproject.codec.impl.CodecManager) LispMappingExtensionCodecRegistrator(org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator) Before(org.junit.Before)

Example 34 with CodecManager

use of org.onosproject.codec.impl.CodecManager 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());
}
Also used : LispMulticastAddress(org.onosproject.drivers.lisp.extensions.LispMulticastAddress) CodecManager(org.onosproject.codec.impl.CodecManager) LispMappingExtensionCodecRegistrator(org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator) Before(org.junit.Before)

Example 35 with CodecManager

use of org.onosproject.codec.impl.CodecManager 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());
}
Also used : LispNatAddress(org.onosproject.drivers.lisp.extensions.LispNatAddress) CodecManager(org.onosproject.codec.impl.CodecManager) LispMappingExtensionCodecRegistrator(org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator) Before(org.junit.Before)

Aggregations

CodecManager (org.onosproject.codec.impl.CodecManager)55 Before (org.junit.Before)50 TestServiceDirectory (org.onlab.osgi.TestServiceDirectory)37 ServiceDirectory (org.onlab.osgi.ServiceDirectory)32 LispMappingExtensionCodecRegistrator (org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator)10 MappingCodecRegistrator (org.onosproject.mapping.MappingCodecRegistrator)7 BeforeClass (org.junit.BeforeClass)5 CodecService (org.onosproject.codec.CodecService)5 BaseConfig (org.onosproject.net.config.BaseConfig)5 DeviceService (org.onosproject.net.device.DeviceService)5 CoreService (org.onosproject.core.CoreService)2 K8sNetworkAdminService (org.onosproject.k8snetworking.api.K8sNetworkAdminService)2 KubevirtHostRouteCodec (org.onosproject.kubevirtnetworking.codec.KubevirtHostRouteCodec)2 KubevirtIpPoolCodec (org.onosproject.kubevirtnetworking.codec.KubevirtIpPoolCodec)2 KubevirtNetworkCodec (org.onosproject.kubevirtnetworking.codec.KubevirtNetworkCodec)2 MetricsService (org.onlab.metrics.MetricsService)1 ApplicationAdminService (org.onosproject.app.ApplicationAdminService)1 ClusterService (org.onosproject.cluster.ClusterService)1 ControllerNode (org.onosproject.cluster.ControllerNode)1 NodeId (org.onosproject.cluster.NodeId)1