use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class OF13SetFieldActionSerializerTest method startUp.
/**
* Initialize registry and mock.
*/
@Before
public void startUp() {
MockitoAnnotations.initMocks(this);
registry = new SerializerRegistryImpl();
registry.init();
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class BarrierReplyMessageFactoryTest method startUp.
@Before
public void startUp() throws Exception {
SerializerRegistry registry = new SerializerRegistryImpl();
registry.init();
factory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, BarrierOutput.class));
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class EchoRequestMessageFactoryTest method startUp.
@Before
public void startUp() {
SerializerRegistry registry = new SerializerRegistryImpl();
registry.init();
factory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, EchoRequestMessage.class));
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class BarrierInputMessageFactoryTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
registry = new SerializerRegistryImpl();
registry.init();
barrierFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, BarrierInput.class));
}
use of org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl in project openflowplugin by opendaylight.
the class EchoInputMessageFactoryTest method startUp.
/**
* Initializes serializer registry and stores correct factory in field.
*/
@Before
public void startUp() {
registry = new SerializerRegistryImpl();
registry.init();
echoFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, EchoInput.class));
}
Aggregations