Search in sources :

Example 1 with NetworkConfigRegistryAdapter

use of org.onosproject.net.config.NetworkConfigRegistryAdapter in project onos by opennetworkinglab.

the class VplsConfigManagerTest method setup.

@Before
public void setup() {
    vplsConfigManager = new VplsConfigManager();
    vplsConfigManager.configService = new TestConfigService();
    vplsConfigManager.coreService = new TestCoreService();
    vplsConfigManager.interfaceService = new TestInterfaceService();
    vplsConfigManager.registry = new NetworkConfigRegistryAdapter();
    vplsConfigManager.vpls = new TestVpls();
    vplsConfigManager.leadershipService = new TestLeadershipService();
    vplsConfigManager.activate();
}
Also used : NetworkConfigRegistryAdapter(org.onosproject.net.config.NetworkConfigRegistryAdapter) Before(org.junit.Before)

Example 2 with NetworkConfigRegistryAdapter

use of org.onosproject.net.config.NetworkConfigRegistryAdapter 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)2 NetworkConfigRegistryAdapter (org.onosproject.net.config.NetworkConfigRegistryAdapter)2 ComponentConfigAdapter (org.onosproject.cfg.ComponentConfigAdapter)1 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1 CoreServiceAdapter (org.onosproject.core.CoreServiceAdapter)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