Search in sources :

Example 1 with AclInterfaceCacheImpl

use of org.opendaylight.netvirt.aclservice.AclInterfaceCacheImpl in project netvirt by opendaylight.

the class AclServiceTestModule method configure.

@Override
protected void configure() {
    bind(DataBroker.class).toInstance(DataBrokerTestModule.dataBroker());
    bind(AclserviceConfig.class).toInstance(aclServiceConfig());
    bind(AclClusterUtil.class).toInstance(() -> true);
    TestIMdsalApiManager singleton = TestIMdsalApiManager.newInstance();
    bind(IMdsalApiManager.class).toInstance(singleton);
    bind(TestIMdsalApiManager.class).toInstance(singleton);
    bind(IdManagerService.class).toInstance(Mockito.mock(TestIdManagerService.class, realOrException()));
    bind(OpendaylightDirectStatisticsService.class).toInstance(Mockito.mock(TestOdlDirectStatisticsService.class, realOrException()));
    bind(JobCoordinatorEventsWaiter.class).to(TestableJobCoordinatorEventsWaiter.class);
    bind(AclInterfaceCache.class).toInstance(new AclInterfaceCacheImpl());
    bind(ServiceRecoveryRegistry.class).toInstance(mock(ServiceRecoveryRegistry.class));
}
Also used : JobCoordinatorEventsWaiter(org.opendaylight.genius.datastoreutils.testutils.JobCoordinatorEventsWaiter) TestableJobCoordinatorEventsWaiter(org.opendaylight.genius.datastoreutils.testutils.TestableJobCoordinatorEventsWaiter) TestIMdsalApiManager(org.opendaylight.genius.mdsalutil.interfaces.testutils.TestIMdsalApiManager) IMdsalApiManager(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager) OpendaylightDirectStatisticsService(org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.OpendaylightDirectStatisticsService) TestIMdsalApiManager(org.opendaylight.genius.mdsalutil.interfaces.testutils.TestIMdsalApiManager) DataBroker(org.opendaylight.controller.md.sal.binding.api.DataBroker) TestOdlDirectStatisticsService(org.opendaylight.netvirt.aclservice.stats.TestOdlDirectStatisticsService) AclserviceConfig(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig) IdManagerService(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService) AclInterfaceCache(org.opendaylight.netvirt.aclservice.api.AclInterfaceCache) ServiceRecoveryRegistry(org.opendaylight.genius.srm.ServiceRecoveryRegistry) AclInterfaceCacheImpl(org.opendaylight.netvirt.aclservice.AclInterfaceCacheImpl) AclClusterUtil(org.opendaylight.netvirt.aclservice.utils.AclClusterUtil)

Aggregations

DataBroker (org.opendaylight.controller.md.sal.binding.api.DataBroker)1 JobCoordinatorEventsWaiter (org.opendaylight.genius.datastoreutils.testutils.JobCoordinatorEventsWaiter)1 TestableJobCoordinatorEventsWaiter (org.opendaylight.genius.datastoreutils.testutils.TestableJobCoordinatorEventsWaiter)1 IMdsalApiManager (org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager)1 TestIMdsalApiManager (org.opendaylight.genius.mdsalutil.interfaces.testutils.TestIMdsalApiManager)1 ServiceRecoveryRegistry (org.opendaylight.genius.srm.ServiceRecoveryRegistry)1 AclInterfaceCacheImpl (org.opendaylight.netvirt.aclservice.AclInterfaceCacheImpl)1 AclInterfaceCache (org.opendaylight.netvirt.aclservice.api.AclInterfaceCache)1 TestOdlDirectStatisticsService (org.opendaylight.netvirt.aclservice.stats.TestOdlDirectStatisticsService)1 AclClusterUtil (org.opendaylight.netvirt.aclservice.utils.AclClusterUtil)1 OpendaylightDirectStatisticsService (org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.OpendaylightDirectStatisticsService)1 IdManagerService (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService)1 AclserviceConfig (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig)1