use of org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor in project qpid-broker-j by apache.
the class AclFileAccessControlProviderFactoryTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
_broker = mock(Broker.class);
_objectFactory = new ConfiguredObjectFactoryImpl(BrokerModel.getInstance());
when(_broker.getObjectFactory()).thenReturn(_objectFactory);
when(_broker.getModel()).thenReturn(_objectFactory.getModel());
when(_broker.getCategoryClass()).thenReturn(Broker.class);
TaskExecutor taskExecutor = new CurrentThreadTaskExecutor();
taskExecutor.start();
when(_broker.getTaskExecutor()).thenReturn(taskExecutor);
when(_broker.getChildExecutor()).thenReturn(taskExecutor);
when(_broker.getEventLogger()).thenReturn(new EventLogger());
}
use of org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor in project qpid-broker-j by apache.
the class TestSingletonImpl method newTaskExecutor.
private static CurrentThreadTaskExecutor newTaskExecutor() {
CurrentThreadTaskExecutor currentThreadTaskExecutor = new CurrentThreadTaskExecutor();
currentThreadTaskExecutor.start();
return currentThreadTaskExecutor;
}
use of org.apache.qpid.server.configuration.updater.CurrentThreadTaskExecutor in project qpid-broker-j by apache.
the class ManagedAuthenticationManagerTestBase method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
_executor = new CurrentThreadTaskExecutor();
_executor.start();
_broker = BrokerTestHelper.createBrokerMock();
when(_broker.getTaskExecutor()).thenReturn(_executor);
when(_broker.getChildExecutor()).thenReturn(_executor);
final Map<String, Object> attributesMap = new HashMap<String, Object>();
attributesMap.put(AuthenticationProvider.NAME, getTestName());
attributesMap.put(AuthenticationProvider.ID, UUID.randomUUID());
_authManager = createAuthManager(attributesMap);
_authManager.open();
}
Aggregations