use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingActionCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the mapping action codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new MappingCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new MappingCodecContextAdapter(registrator.codecService);
actionCodec = context.codec(MappingAction.class);
assertThat(actionCodec, notNullValue());
}
use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingAddressCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the mapping address codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new MappingCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new MappingCodecContextAdapter(registrator.codecService);
addressCodec = context.codec(MappingAddress.class);
assertThat(addressCodec, notNullValue());
}
use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingInstructionCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the mapping instruction codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new MappingCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new MappingCodecContextAdapter(registrator.codecService);
instructionCodec = context.codec(MappingInstruction.class);
assertThat(instructionCodec, notNullValue());
}
use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingKeyCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the mapping key codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new MappingCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new MappingCodecContextAdapter(registrator.codecService);
keyCodec = context.codec(MappingKey.class);
assertThat(keyCodec, notNullValue());
}
use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingValueCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the mapping value codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new MappingCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new MappingCodecContextAdapter(registrator.codecService);
valueCodec = context.codec(MappingValue.class);
assertThat(valueCodec, notNullValue());
}
Aggregations