Package net.floodlightcontroller.devicemanager.test

Examples of net.floodlightcontroller.devicemanager.test.MockEntityClassifier


        replay(mockListener);
        deviceManager.addListener(mockListener);
        verify(mockListener);
        reset(mockListener);
        deviceManager.entityClassifier= new MockEntityClassifier();
        deviceManager.startUp(null);

        ITopologyService mockTopology = createMock(ITopologyService.class);
        expect(mockTopology.getL2DomainId(anyLong())).
        andReturn(1L).anyTimes();
View Full Code Here


    public void testDeviceSyncRepresentationFromDevice() {
        ITopologyService mockTopology = makeMockTopologyAllPortsAp();
        replay(mockTopology);
        deviceManager.topology = mockTopology;

        deviceManager.entityClassifier = new MockEntityClassifier();

        //**************************************
        // Test 1: a single entity
        Entity e1 = new Entity(1L, (short)2, 3, 4L, 5, new Date(1000));
        Device d1 = deviceManager.learnDeviceByEntity(e1);
View Full Code Here

        int initialSyncStoreConsolidateIntervalMs = 50;
        ITopologyService mockTopology = makeMockTopologyAllPortsAp();
        replay(mockTopology);
        deviceManager.topology = mockTopology;
        // We want an EntityClassifier that has switch/port as key fields
        deviceManager.entityClassifier = new MockEntityClassifier();
        deviceManager.setSyncStoreWriteInterval(syncStoreWriteIntervalMs);
        deviceManager.setInitialSyncStoreConsolidateMs(initialSyncStoreConsolidateIntervalMs);

        // Add Device1 with two entities with two different IPs
        Entity e1a = new Entity(1L, null, 3, 4L, 5, new Date(1000));
View Full Code Here

        int syncStoreInternalMs = 0;
        ITopologyService mockTopology = makeMockTopologyAllPortsAp();
        replay(mockTopology);
        deviceManager.topology = mockTopology;
        // We want an EntityClassifier that has switch/port as key fields
        deviceManager.entityClassifier = new MockEntityClassifier();
        deviceManager.setSyncStoreWriteInterval(syncStoreInternalMs);

        // Add Device1 with two entities to store and let device manager
        // learn
        Entity e1a = new Entity(1L, null, null, 4L, 5, new Date(1000));
View Full Code Here

TOP

Related Classes of net.floodlightcontroller.devicemanager.test.MockEntityClassifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.