Search in sources :

Example 1 with ItmExternalTunnelAddWorker

use of org.opendaylight.genius.itm.confighelpers.ItmExternalTunnelAddWorker 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())));
}
Also used : CacheManagersRegistryImpl(org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl) ItmExternalTunnelAddWorker(org.opendaylight.genius.itm.confighelpers.ItmExternalTunnelAddWorker) GuavaCacheProvider(org.opendaylight.infrautils.caches.guava.internal.GuavaCacheProvider) DPNTEPsInfoCache(org.opendaylight.genius.itm.cache.DPNTEPsInfoCache) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DPNTEPsInfoCache (org.opendaylight.genius.itm.cache.DPNTEPsInfoCache)1 ItmExternalTunnelAddWorker (org.opendaylight.genius.itm.confighelpers.ItmExternalTunnelAddWorker)1 CacheManagersRegistryImpl (org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl)1 GuavaCacheProvider (org.opendaylight.infrautils.caches.guava.internal.GuavaCacheProvider)1