@Issue("issues/317") @Test public void testCheckConnectionAllowed() throws Exception { sniffySocket.connect("google.com", 443); ConnectionsRegistry.INSTANCE.setSocketAddressStatus("google.com", 443, -1); try { sniffySocket.connect("google.com", 443); fail(); } catch (Exception e) { assertNotNull(e); } }
protected void checkConnectionAllowed() throws ConnectException { checkConnectionAllowed(0); }
SnifferSocketImpl extends SocketImpl implements SniffySocket { protected void checkConnectionAllowed() throws ConnectException { checkConnectionAllowed(0); } }
SnifferSocketImpl extends SocketImpl implements SniffySocket { protected void checkConnectionAllowed() throws ConnectException { checkConnectionAllowed(0); } protected  SnifferSocketImpl(SocketImpl delegate); }
SnifferSocketImpl extends SocketImpl implements SniffySocket { protected void checkConnectionAllowed() throws ConnectException { checkConnectionAllowed(0); } protected  SnifferSocketImpl(SocketImpl delegate); @Override void setConnectionStatus(Integer connectionStatus); @Override String toString(); @Override void setOption(int optID, Object value); @Override Object getOption(int optID); @Override InetSocketAddress getInetSocketAddress(); }
SnifferSocketImpl extends SocketImpl implements SniffySocket { protected void checkConnectionAllowed() throws ConnectException { checkConnectionAllowed(0); } protected  SnifferSocketImpl(SocketImpl delegate); @Override void setConnectionStatus(Integer connectionStatus); @Override String toString(); @Override void setOption(int optID, Object value); @Override Object getOption(int optID); @Override InetSocketAddress getInetSocketAddress();  }