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();
}
Aggregations