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());
}
use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingEntryCodecTest method setUp.
/**
* Sets up for each test.
* Creates a context and fetches the mapping entry codec.
*/
@Before
public void setUp() {
CodecManager manager = new CodecManager();
registrator = new MappingCodecRegistrator();
registrator.codecService = manager;
registrator.activate();
context = new MappingCodecContextAdapter(registrator.codecService);
entryCodec = context.codec(MappingEntry.class);
assertThat(entryCodec, notNullValue());
}
use of org.onosproject.mapping.MappingCodecRegistrator in project onos by opennetworkinglab.
the class MappingTreatmentCodecTest 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);
treatmentCodec = context.codec(MappingTreatment.class);
assertThat(treatmentCodec, notNullValue());
}
Aggregations