use of org.onosproject.mapping.Mapping in project onos by opennetworkinglab.
the class MappingManagerTest method addMapping.
/**
* Adds a new mapping into the mapping store.
*
* @param type mapping store type
* @param tval test value
* @return a mapping that has been added to the store
*/
private Mapping addMapping(Type type, int tval) {
Mapping mapping = mapping(tval, tval);
MappingEntry entry = new DefaultMappingEntry(mapping);
adminService.storeMappingEntry(type, entry);
assertNotNull("mapping should be found", service.getMappingEntries(type, LISP_DID));
return mapping;
}
Aggregations