Search in sources :

Example 1 with LinkProviderRegistryAdapter

use of org.onosproject.net.link.LinkProviderRegistryAdapter in project onos by opennetworkinglab.

the class NetworkConfigLinksProviderTest method setUp.

/**
 * Sets up a network config links provider under test and the services
 * required to run it.
 */
@Before
public void setUp() {
    provider = new NetworkConfigLinksProvider();
    provider.coreService = new CoreServiceAdapter();
    provider.packetService = new PacketServiceAdapter();
    LinkProviderRegistryAdapter linkRegistry = new LinkProviderRegistryAdapter();
    provider.providerRegistry = linkRegistry;
    provider.deviceService = new TestDeviceManager();
    provider.masterService = new TestMastershipService();
    provider.packetService = new TestPacketService();
    provider.clusterMetadataService = new ClusterMetadataServiceAdapter();
    provider.netCfgService = configRegistry;
    provider.activate();
    providerService = linkRegistry.registeredProvider();
}
Also used : CoreServiceAdapter(org.onosproject.core.CoreServiceAdapter) PacketServiceAdapter(org.onosproject.net.packet.PacketServiceAdapter) ClusterMetadataServiceAdapter(org.onosproject.cluster.ClusterMetadataServiceAdapter) LinkProviderRegistryAdapter(org.onosproject.net.link.LinkProviderRegistryAdapter) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ClusterMetadataServiceAdapter (org.onosproject.cluster.ClusterMetadataServiceAdapter)1 CoreServiceAdapter (org.onosproject.core.CoreServiceAdapter)1 LinkProviderRegistryAdapter (org.onosproject.net.link.LinkProviderRegistryAdapter)1 PacketServiceAdapter (org.onosproject.net.packet.PacketServiceAdapter)1