Search in sources :

Example 11 with RegionMappingSet

use of org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingSet in project open-kilda by telstra.

the class ControllerToSpeakerProxyBoltTest method verifyMissingRwRegionMapping.

@Test
public void verifyMissingRwRegionMapping() {
    injectRegionUpdate(new RegionMappingSet(switchAlpha, REGION_ONE, false));
    injectDiscoveryRequest(switchAlpha);
    verifyNoMoreInteractions(outputCollector);
}
Also used : RegionMappingSet(org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingSet) Test(org.junit.Test)

Aggregations

RegionMappingSet (org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingSet)11 Test (org.junit.Test)8 SwitchInfoData (org.openkilda.messaging.info.event.SwitchInfoData)7 SwitchAvailabilityData (org.openkilda.messaging.model.SwitchAvailabilityData)7 RegionMappingRemove (org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingRemove)7 Duration (java.time.Duration)4 Instant (java.time.Instant)4 Collections (java.util.Collections)4 Comparator (java.util.Comparator)4 Objects (java.util.Objects)4 Collectors (java.util.stream.Collectors)4 Assert (org.junit.Assert)4 RunWith (org.junit.runner.RunWith)4 ArgumentMatchers.any (org.mockito.ArgumentMatchers.any)4 ArgumentMatchers.argThat (org.mockito.ArgumentMatchers.argThat)4 ArgumentMatchers.eq (org.mockito.ArgumentMatchers.eq)4 Mock (org.mockito.Mock)4 Mockito.reset (org.mockito.Mockito.reset)4 Mockito.times (org.mockito.Mockito.times)4 Mockito.verify (org.mockito.Mockito.verify)4