use of org.opendaylight.controller.config.manager.impl.factoriesresolver.HardcodedModuleFactoriesResolver in project controller by opendaylight.
the class ImmediateEventExecutorModuleTest method setUp.
@Before
public void setUp() {
factory = new ImmediateEventExecutorModuleFactory();
super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(mockedContext, factory));
}
use of org.opendaylight.controller.config.manager.impl.factoriesresolver.HardcodedModuleFactoriesResolver in project controller by opendaylight.
the class NettyThreadgroupModuleTest method setUp.
@SuppressWarnings({ "rawtypes", "unchecked" })
@Before
public void setUp() throws Exception {
factory = new NettyThreadgroupModuleFactory();
super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(mockedContext, factory));
Filter mockFilter = mock(Filter.class);
doReturn("mock").when(mockFilter).toString();
doReturn(mockFilter).when(mockedContext).createFilter(anyString());
doNothing().when(mockedContext).addServiceListener(any(ServiceListener.class), anyString());
ServiceReference mockServiceRef = mock(ServiceReference.class);
doReturn(new ServiceReference[] { mockServiceRef }).when(mockedContext).getServiceReferences(anyString(), anyString());
doReturn(mock(EventLoopGroup.class)).when(mockedContext).getService(mockServiceRef);
}
use of org.opendaylight.controller.config.manager.impl.factoriesresolver.HardcodedModuleFactoriesResolver in project controller by opendaylight.
the class NetconfTestImplModuleTest method setUp.
@Before
public void setUp() {
this.factory = new NetconfTestImplModuleFactory();
super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(this.mockedContext, this.factory, new DepTestImplModuleFactory(), new IdentityTestModuleFactory()));
}
use of org.opendaylight.controller.config.manager.impl.factoriesresolver.HardcodedModuleFactoriesResolver in project controller by opendaylight.
the class MockedDependenciesTest method setUp.
@Before
public void setUp() {
ClassBasedModuleFactory mockedThreadPoolConfigFactory = new ClassBasedModuleFactory(threadPoolImplementationName, MockedThreadPoolModule.class);
super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(mockedContext, new TestingParallelAPSPModuleFactory(), mockedThreadPoolConfigFactory));
}
Aggregations