use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class GetFeaturesInputMessageFactoryTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
registry = new SerializerRegistryImpl();
registry.init();
featuresFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, GetFeaturesInput.class));
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class GroupModInputMessageFactoryTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
registry = new SerializerRegistryImpl();
registry.init();
groupModFactory = new GroupModInputMessageFactory(false);
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class MultipartRequestMeterFeaturesTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
registry = new SerializerRegistryImpl();
registry.init();
multipartFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, MultipartRequestInput.class));
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class MultipartRequestTableFeaturesTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
Mockito.when(mockRegistry.getSerializer((MessageTypeKey<?>) Matchers.any())).thenReturn(serializer);
registry = new SerializerRegistryImpl();
registry.init();
multipartFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, MultipartRequestInput.class));
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class OF10StatsRequestAggregateTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
registry = new SerializerRegistryImpl();
registry.init();
statsFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF10_VERSION_ID, MultipartRequestInput.class));
}
Aggregations