use of org.opendaylight.genius.itm.cache.DPNTEPsInfoCache in project genius by opendaylight.
the class ItmExternalTunnelAddTest method setUp.
@Before
public void setUp() {
setupMocks();
optionalDpnEndPoints = Optional.of(dpnEndpointsVxlan);
tunnelMonitorParamsOptional = Optional.of(tunnelMonitorParams);
tunnelMonitorIntervalOptional = Optional.of(tunnelMonitorInterval);
doReturn(Futures.immediateCheckedFuture(optionalDpnEndPoints)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, dpnEndpointsIdentifier);
doReturn(Futures.immediateCheckedFuture(tunnelMonitorParamsOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, tunnelMonitorParamsInstanceIdentifier);
doReturn(Futures.immediateCheckedFuture(tunnelMonitorIntervalOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, tunnelMonitorIntervalIdentifier);
externalTunnelAddWorker = new ItmExternalTunnelAddWorker(dataBroker, itmConfig, new DPNTEPsInfoCache(dataBroker, new GuavaCacheProvider(new CacheManagersRegistryImpl())));
}
use of org.opendaylight.genius.itm.cache.DPNTEPsInfoCache in project genius by opendaylight.
the class ItmManagerRpcServiceTest method setUp.
@Before
public void setUp() {
setupMocks();
externalTunnelOptional = Optional.of(externalTunnel);
internalTunnelOptional = Optional.of(internalTunnel);
dpnEndpointsOptional = Optional.of(dpnEndpoints);
transportZonesOptional = Optional.of(transportZones);
doReturn(Futures.immediateCheckedFuture(externalTunnelOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, externalTunnelIdentifier);
doReturn(Futures.immediateCheckedFuture(externalTunnelOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, externalTunnelIdentifier1);
doReturn(Futures.immediateCheckedFuture(internalTunnelOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, internalTunnelIdentifier);
doReturn(Futures.immediateCheckedFuture(internalTunnelOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, internalTunnelIdentifierNew);
doReturn(Futures.immediateCheckedFuture(dpnEndpointsOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, dpnEndpointsIdentifier);
doReturn(Futures.immediateCheckedFuture(transportZonesOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, transportZonesIdentifier);
itmManagerRpcService = new ItmManagerRpcService(dataBroker, mdsalApiManager, itmConfig, new DPNTEPsInfoCache(dataBroker, new GuavaCacheProvider(new CacheManagersRegistryImpl())));
}
Aggregations