use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.
the class RuleBasedAccessControlTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
_messageLogger = new UnitTestMessageLogger();
_eventLogger = new EventLogger(_messageLogger);
_plugin = null;
}
use of org.apache.qpid.server.logging.EventLogger 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.logging.EventLogger in project qpid-broker-j by apache.
the class AclFileAccessControlProviderImplTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
_taskExecutor = CurrentThreadTaskExecutor.newStartedInstance();
_model = BrokerModel.getInstance();
_broker = mock(Broker.class);
when(_broker.getTaskExecutor()).thenReturn(_taskExecutor);
when(_broker.getChildExecutor()).thenReturn(_taskExecutor);
when(_broker.getModel()).thenReturn(_model);
when(_broker.getId()).thenReturn(UUID.randomUUID());
when(_broker.getEventLogger()).thenReturn(new EventLogger());
}
use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.
the class FileKeyStoreTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
when(_broker.getTaskExecutor()).thenReturn(_taskExecutor);
when(_broker.getChildExecutor()).thenReturn(_taskExecutor);
when(_broker.getModel()).thenReturn(_model);
when(_broker.getCategoryClass()).thenReturn(Broker.class);
when(_broker.getEventLogger()).thenReturn(new EventLogger());
when(_broker.getTypeClass()).thenReturn(Broker.class);
}
use of org.apache.qpid.server.logging.EventLogger in project qpid-broker-j by apache.
the class NonJavaKeyStoreTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
_messageLogger = mock(MessageLogger.class);
when(_broker.getTaskExecutor()).thenReturn(_taskExecutor);
when(_broker.getChildExecutor()).thenReturn(_taskExecutor);
when(_broker.getModel()).thenReturn(_model);
when(_broker.getEventLogger()).thenReturn(new EventLogger(_messageLogger));
when(((Broker) _broker).getCategoryClass()).thenReturn(Broker.class);
_testResources = new ArrayList<>();
}
Aggregations