Search in sources :

Example 11 with ExperimenterIdDeserializerKey

use of org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey in project openflowplugin by opendaylight.

the class ExperimenterDeserializerKeyFactoryTest method testCreateMultipartReplyTFDeserializerKey.

@Test
public void testCreateMultipartReplyTFDeserializerKey() throws Exception {
    ExperimenterIdDeserializerKey createdKey;
    ExperimenterIdDeserializerKey comparationKey;
    createdKey = ExperimenterDeserializerKeyFactory.createMultipartReplyTFDeserializerKey(EncodeConstants.OF10_VERSION_ID, 46L);
    comparationKey = new ExperimenterIdDeserializerKey(EncodeConstants.OF10_VERSION_ID, 46L, TableFeatureProperties.class);
    Assert.assertEquals("Wrong key created", comparationKey, createdKey);
}
Also used : TableFeatureProperties(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.table.features.properties.grouping.TableFeatureProperties) ExperimenterIdDeserializerKey(org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey) Test(org.junit.Test)

Example 12 with ExperimenterIdDeserializerKey

use of org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey in project openflowplugin by opendaylight.

the class ExperimenterDeserializerKeyFactoryTest method testCreateMultipartReplyVendorMessageDeserializerKey.

@Test
public void testCreateMultipartReplyVendorMessageDeserializerKey() throws Exception {
    ExperimenterIdDeserializerKey createdKey;
    ExperimenterIdDeserializerKey comparationKey;
    createdKey = ExperimenterDeserializerKeyFactory.createMultipartReplyVendorMessageDeserializerKey(EncodeConstants.OF10_VERSION_ID, 43L);
    comparationKey = new ExperimenterIdDeserializerKey(EncodeConstants.OF10_VERSION_ID, 43L, ExperimenterDataOfChoice.class);
    Assert.assertEquals("Wrong key created", comparationKey, createdKey);
}
Also used : ExperimenterDataOfChoice(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.experimenter.core.ExperimenterDataOfChoice) ExperimenterIdDeserializerKey(org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey) Test(org.junit.Test)

Example 13 with ExperimenterIdDeserializerKey

use of org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey in project openflowplugin by opendaylight.

the class ExperimenterDeserializerKeyFactoryTest method testCreateQueuePropertyDeserializerKey.

@Test
public void testCreateQueuePropertyDeserializerKey() throws Exception {
    ExperimenterIdDeserializerKey createdKey;
    ExperimenterIdDeserializerKey comparationKey;
    createdKey = ExperimenterDeserializerKeyFactory.createQueuePropertyDeserializerKey(EncodeConstants.OF10_VERSION_ID, 47L);
    comparationKey = new ExperimenterIdDeserializerKey(EncodeConstants.OF10_VERSION_ID, 47L, QueueProperty.class);
    Assert.assertEquals("Wrong key created", comparationKey, createdKey);
}
Also used : ExperimenterIdDeserializerKey(org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey) QueueProperty(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.property.header.QueueProperty) Test(org.junit.Test)

Example 14 with ExperimenterIdDeserializerKey

use of org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey in project openflowplugin by opendaylight.

the class ExperimenterDeserializerKeyFactoryTest method testCreateMeterBandDeserializerKey.

@Test
public void testCreateMeterBandDeserializerKey() throws Exception {
    ExperimenterIdDeserializerKey createdKey;
    ExperimenterIdDeserializerKey comparationKey;
    createdKey = ExperimenterDeserializerKeyFactory.createMeterBandDeserializerKey(EncodeConstants.OF10_VERSION_ID, 44L);
    comparationKey = new ExperimenterIdDeserializerKey(EncodeConstants.OF10_VERSION_ID, 44L, MeterBandExperimenterCase.class);
    Assert.assertEquals("Wrong key created", comparationKey, createdKey);
}
Also used : ExperimenterIdDeserializerKey(org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey) MeterBandExperimenterCase(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.meter.band.header.meter.band.MeterBandExperimenterCase) Test(org.junit.Test)

Aggregations

ExperimenterIdDeserializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey)14 Test (org.junit.Test)11 ExperimenterDataOfChoice (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.experimenter.core.ExperimenterDataOfChoice)6 ErrorMessage (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.ErrorMessage)3 ArrayList (java.util.ArrayList)2 ExperimenterIdTypeDeserializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdTypeDeserializerKey)2 MessageCodeKey (org.opendaylight.openflowjava.protocol.api.keys.MessageCodeKey)2 MeterBandType (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.MeterBandType)2 MeterId (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.MeterId)2 DropBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.band.type.band.type.DropBuilder)2 DscpRemarkBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.band.type.band.type.DscpRemarkBuilder)2 MeterBandHeadersBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.MeterBandHeadersBuilder)2 MeterBandHeader (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.meter.band.headers.MeterBandHeader)2 MeterBandHeaderBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.meter.band.headers.MeterBandHeaderBuilder)2 MeterBandTypesBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.meter.band.headers.meter.band.header.MeterBandTypesBuilder)2 MeterBandExperimenterCase (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.meter.band.header.meter.band.MeterBandExperimenterCase)2 TableFeatureProperties (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.table.features.properties.grouping.TableFeatureProperties)2 OFDeserializer (org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer)1 ExperimenterActionDeserializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterActionDeserializerKey)1 ExperimenterActionSerializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterActionSerializerKey)1