Search in sources :

Example 1 with ItmInternalTunnelDeleteWorker

use of org.opendaylight.genius.itm.confighelpers.ItmInternalTunnelDeleteWorker in project genius by opendaylight.

the class ItmInternalTunnelDeleteTest method setUp.

@Before
public void setUp() {
    setupMocks();
    tunnelMonitorParamsOptional = Optional.of(tunnelMonitorParams);
    tunnelMonitorIntervalOptional = Optional.of(tunnelMonitorInterval);
    internalTunnelOptional = Optional.of(internalTunnel);
    doReturn(Futures.immediateCheckedFuture(tunnelMonitorParamsOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, tunnelMonitorParamsInstanceIdentifier);
    doReturn(Futures.immediateCheckedFuture(tunnelMonitorIntervalOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, tunnelMonitorIntervalIdentifier);
    doReturn(Futures.immediateCheckedFuture(internalTunnelOptional)).when(mockReadTx).read(LogicalDatastoreType.CONFIGURATION, internalTunnelIdentifier);
    itmInternalTunnelDeleteWorker = new ItmInternalTunnelDeleteWorker(dataBroker, jobCoordinator, new TunnelMonitoringConfig(dataBroker, new GuavaCacheProvider(new CacheManagersRegistryImpl())));
}
Also used : ItmInternalTunnelDeleteWorker(org.opendaylight.genius.itm.confighelpers.ItmInternalTunnelDeleteWorker) CacheManagersRegistryImpl(org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl) GuavaCacheProvider(org.opendaylight.infrautils.caches.guava.internal.GuavaCacheProvider) Before(org.junit.Before)

Aggregations

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