@Override public void handleBlocked(String reason) throws IOException { this.applicationEventPublisher.publishEvent(new ConnectionBlockedEvent(this.connection, reason)); }
public Connection getConnection() { return (Connection) getSource(); }
assertEquals("Test connection blocked", connectionBlockedEvent.getReason()); assertSame(TestUtils.getPropertyValue(connection, "target"), connectionBlockedEvent.getConnection());
public Connection getConnection() { return (Connection) getSource(); }
@Override public void handleBlocked(String reason) throws IOException { this.applicationEventPublisher.publishEvent(new ConnectionBlockedEvent(this.connection, reason)); }