Search in sources :

Example 6 with LispMappingExtensionCodecRegistrator

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());
}
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 7 with LispMappingExtensionCodecRegistrator

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());
}
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 8 with LispMappingExtensionCodecRegistrator

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());
}
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 9 with LispMappingExtensionCodecRegistrator

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());
}
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)

Example 10 with LispMappingExtensionCodecRegistrator

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());
}
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)

Aggregations

Before (org.junit.Before)10 CodecManager (org.onosproject.codec.impl.CodecManager)10 LispMappingExtensionCodecRegistrator (org.onosproject.drivers.lisp.extensions.LispMappingExtensionCodecRegistrator)10 LispAppDataAddress (org.onosproject.drivers.lisp.extensions.LispAppDataAddress)1 LispAsAddress (org.onosproject.drivers.lisp.extensions.LispAsAddress)1 LispGcAddress (org.onosproject.drivers.lisp.extensions.LispGcAddress)1 LispListAddress (org.onosproject.drivers.lisp.extensions.LispListAddress)1 LispMulticastAddress (org.onosproject.drivers.lisp.extensions.LispMulticastAddress)1 LispNatAddress (org.onosproject.drivers.lisp.extensions.LispNatAddress)1 LispNonceAddress (org.onosproject.drivers.lisp.extensions.LispNonceAddress)1 LispSegmentAddress (org.onosproject.drivers.lisp.extensions.LispSegmentAddress)1 LispSrcDstAddress (org.onosproject.drivers.lisp.extensions.LispSrcDstAddress)1 LispTeAddress (org.onosproject.drivers.lisp.extensions.LispTeAddress)1