Search in sources :

Example 1 with EventListener

use of org.apache.qpid.server.store.EventListener in project qpid-broker-j by apache.

the class VirtualHostTest method testExistingConnectionBlocking.

public void testExistingConnectionBlocking() {
    VirtualHost<?> host = createVirtualHost(getTestName());
    AbstractAMQPConnection connection = mock(AbstractAMQPConnection.class);
    host.registerConnection(connection, new NoopConnectionEstablishmentPolicy());
    ((EventListener) host).event(Event.PERSISTENT_MESSAGE_SIZE_OVERFULL);
    verify(connection).block();
}
Also used : AbstractAMQPConnection(org.apache.qpid.server.transport.AbstractAMQPConnection) NoopConnectionEstablishmentPolicy(org.apache.qpid.server.virtualhost.NoopConnectionEstablishmentPolicy) EventListener(org.apache.qpid.server.store.EventListener)

Aggregations

EventListener (org.apache.qpid.server.store.EventListener)1 AbstractAMQPConnection (org.apache.qpid.server.transport.AbstractAMQPConnection)1 NoopConnectionEstablishmentPolicy (org.apache.qpid.server.virtualhost.NoopConnectionEstablishmentPolicy)1