Search in sources :

Example 1 with MeterServiceAdapter

use of org.onosproject.net.meter.MeterServiceAdapter in project up4 by omec-project.

the class Up4DeviceManagerTest method setUp.

@Before
public void setUp() {
    component = new Up4DeviceManager();
    component.coreService = new CoreServiceAdapter();
    component.flowRuleService = new FlowRuleServiceAdapter();
    component.meterService = new MeterServiceAdapter();
    component.deviceService = new DeviceServiceAdapter();
    component.piPipeconfService = new PiPipeconfServiceAdapter();
    component.netCfgService = new NetworkConfigRegistryAdapter();
    component.componentConfigService = new ComponentConfigAdapter();
    component.up4Store = TestDistributedUp4Store.build();
    injectEventDispatcher(component, new TestEventDispatcher());
    component.activate();
}
Also used : ComponentConfigAdapter(org.onosproject.cfg.ComponentConfigAdapter) TestEventDispatcher(org.onosproject.common.event.impl.TestEventDispatcher) CoreServiceAdapter(org.onosproject.core.CoreServiceAdapter) FlowRuleServiceAdapter(org.onosproject.net.flow.FlowRuleServiceAdapter) NetworkConfigRegistryAdapter(org.onosproject.net.config.NetworkConfigRegistryAdapter) MeterServiceAdapter(org.onosproject.net.meter.MeterServiceAdapter) PiPipeconfServiceAdapter(org.onosproject.net.pi.PiPipeconfServiceAdapter) DeviceServiceAdapter(org.onosproject.net.device.DeviceServiceAdapter) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ComponentConfigAdapter (org.onosproject.cfg.ComponentConfigAdapter)1 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1 CoreServiceAdapter (org.onosproject.core.CoreServiceAdapter)1 NetworkConfigRegistryAdapter (org.onosproject.net.config.NetworkConfigRegistryAdapter)1 DeviceServiceAdapter (org.onosproject.net.device.DeviceServiceAdapter)1 FlowRuleServiceAdapter (org.onosproject.net.flow.FlowRuleServiceAdapter)1 MeterServiceAdapter (org.onosproject.net.meter.MeterServiceAdapter)1 PiPipeconfServiceAdapter (org.onosproject.net.pi.PiPipeconfServiceAdapter)1