@Test(expected = ConnectionsRequestFailed.class, timeout = 2500) public void testServerHangingWhileCloseOfConnections() { stubFor(delete(urlEqualTo(connectionsUrl + "?type=close")).willReturn(aResponse().withFixedDelay(5000))); lowTimeoutClient.closeConnections(CLOSE); }
public ClosedConnectionReport closeConnections(CloseType closeType) { return closeConnectionsByUrl(closeType, ""); }
CurrentClient { public ClosedConnectionReport closeConnections(CloseType closeType) { return closeConnectionsByUrl(closeType, ""); } }
CurrentClient { public ClosedConnectionReport closeConnections(CloseType closeType) { return closeConnectionsByUrl(closeType, ""); } private  CurrentClient(String host, int port, int socketTimeout); }
CurrentClient { public ClosedConnectionReport closeConnections(CloseType closeType) { return closeConnectionsByUrl(closeType, ""); } private  CurrentClient(String host, int port, int socketTimeout); static CurrentClientBuilder builder(); ConnectionReport getConnections(); ConnectionReport getConnections(String ip); ConnectionReport getConnections(InetAddress address); ConnectionReport getConnection(String host, int port); ConnectionReport getConnection(InetSocketAddress address); ClosedConnectionReport closeConnections(CloseType closeType); ClosedConnectionReport closeConnections(CloseType closeType, String ip); ClosedConnectionReport closeConnections(CloseType closeType, InetAddress address); ClosedConnectionReport closeConnection(CloseType closeType, String host, int port); ClosedConnectionReport closeConnection(CloseType closeType, InetSocketAddress address); boolean enableListener(); boolean disableListener(); boolean disableListener(int after); }
CurrentClient { public ClosedConnectionReport closeConnections(CloseType closeType) { return closeConnectionsByUrl(closeType, ""); } private  CurrentClient(String host, int port, int socketTimeout); static CurrentClientBuilder builder(); ConnectionReport getConnections(); ConnectionReport getConnections(String ip); ConnectionReport getConnections(InetAddress address); ConnectionReport getConnection(String host, int port); ConnectionReport getConnection(InetSocketAddress address); ClosedConnectionReport closeConnections(CloseType closeType); ClosedConnectionReport closeConnections(CloseType closeType, String ip); ClosedConnectionReport closeConnections(CloseType closeType, InetAddress address); ClosedConnectionReport closeConnection(CloseType closeType, String host, int port); ClosedConnectionReport closeConnection(CloseType closeType, InetSocketAddress address); boolean enableListener(); boolean disableListener(); boolean disableListener(int after);  }