Search in sources :

Example 1 with SimplePacketStore

use of org.onosproject.store.trivial.SimplePacketStore in project onos by opennetworkinglab.

the class PacketManagerTest method setUp.

@Before
public void setUp() {
    mgr = new PacketManager();
    injectEventDispatcher(mgr, new TestEventDispatcher());
    mgr.store = new SimplePacketStore();
    mgr.clusterService = new ClusterServiceAdapter();
    mgr.deviceService = new TestDeviceService();
    mgr.deviceService = new TestDeviceService();
    mgr.coreService = new TestCoreService();
    providerRegistry = mgr;
    mgr.activate();
    DriverRegistryManager driverRegistry = new DriverRegistryManager();
    driverService = new TestDriverManager(driverRegistry);
    driverRegistry.addDriver(new DefaultDriver("foo", ImmutableList.of(), "", "", "", ImmutableMap.of(PacketProgrammable.class, TestPacketProgrammable.class), ImmutableMap.of()));
}
Also used : TestEventDispatcher(org.onosproject.common.event.impl.TestEventDispatcher) ClusterServiceAdapter(org.onosproject.cluster.ClusterServiceAdapter) DefaultDriver(org.onosproject.net.driver.DefaultDriver) DriverRegistryManager(org.onosproject.net.driver.impl.DriverRegistryManager) SimplePacketStore(org.onosproject.store.trivial.SimplePacketStore) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ClusterServiceAdapter (org.onosproject.cluster.ClusterServiceAdapter)1 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1 DefaultDriver (org.onosproject.net.driver.DefaultDriver)1 DriverRegistryManager (org.onosproject.net.driver.impl.DriverRegistryManager)1 SimplePacketStore (org.onosproject.store.trivial.SimplePacketStore)1