Search in sources :

Example 1 with ConnectionLimitEventLogger

use of org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger in project qpid-broker-j by apache.

the class RejectRegistrationTest method setUp.

@Before
public void setUp() {
    _eventLogger = Mockito.mock(org.apache.qpid.server.logging.EventLogger.class);
    _logger = new ConnectionLimitEventLogger("RejectLogger", () -> _eventLogger);
}
Also used : ConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger) ConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger) Before(org.junit.Before)

Example 2 with ConnectionLimitEventLogger

use of org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger in project qpid-broker-j by apache.

the class AcceptRegistrationTest method setUp.

@Before
public void setUp() {
    _eventLogger = Mockito.mock(org.apache.qpid.server.logging.EventLogger.class);
    final EventLoggerProvider provider = () -> _eventLogger;
    _logger = new FullConnectionLimitEventLogger("AllLogger", provider);
    _rejectLogger = new ConnectionLimitEventLogger("RejectLogger", provider);
    _slot = Mockito.mock(ConnectionSlot.class);
}
Also used : ConnectionSlot(org.apache.qpid.server.security.limit.ConnectionSlot) EventLoggerProvider(org.apache.qpid.server.logging.EventLoggerProvider) FullConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.FullConnectionLimitEventLogger) ConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger) FullConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.FullConnectionLimitEventLogger) FullConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.FullConnectionLimitEventLogger) ConnectionLimitEventLogger(org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger) Before(org.junit.Before)

Aggregations

ConnectionLimitEventLogger (org.apache.qpid.server.user.connection.limits.logging.ConnectionLimitEventLogger)2 Before (org.junit.Before)2 EventLoggerProvider (org.apache.qpid.server.logging.EventLoggerProvider)1 ConnectionSlot (org.apache.qpid.server.security.limit.ConnectionSlot)1 FullConnectionLimitEventLogger (org.apache.qpid.server.user.connection.limits.logging.FullConnectionLimitEventLogger)1