|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.bytestreams.socks5.Socks5ByteStreamRequestTest
public class Socks5ByteStreamRequestTest
Tests for the Socks5BytestreamRequest class.
| Constructor Summary | |
|---|---|
Socks5ByteStreamRequestTest()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Stop eventually started local SOCKS5 test proxy. |
void |
setup()
Initialize fields used in the tests. |
void |
shouldAcceptSocks5BytestreamRequestAndReceiveData()
Accepting the SOCKS5 Bytestream request should be successfully. |
void |
shouldBlacklistInvalidProxyAfter2Failures()
Target should not try to connect to SOCKS5 proxies that already failed twice. |
void |
shouldFailIfRequestHasInvalidStreamHosts()
Accepting a SOCKS5 Bytestream request should fail if target is not able to connect to any of the provided SOCKS5 proxies. |
void |
shouldFailIfRequestHasNoStreamHosts()
Accepting a SOCKS5 Bytestream request should fail if the request doesn't contain any Socks5 proxies. |
void |
shouldNotBlacklistInvalidProxy()
Target should not not blacklist any SOCKS5 proxies regardless of failing connections. |
void |
shouldNotTimeoutIfFirstSocks5ProxyDoesNotRespond()
If the SOCKS5 Bytestream request contains multiple SOCKS5 proxies and the first one doesn't respond, the connection attempt to this proxy should not consume the whole timeout for connecting to the proxies. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Socks5ByteStreamRequestTest()
| Method Detail |
|---|
public void setup()
public void shouldFailIfRequestHasNoStreamHosts()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldFailIfRequestHasInvalidStreamHosts()
throws java.lang.Exception
java.lang.Exception
public void shouldBlacklistInvalidProxyAfter2Failures()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldNotBlacklistInvalidProxy()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldNotTimeoutIfFirstSocks5ProxyDoesNotRespond()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldAcceptSocks5BytestreamRequestAndReceiveData()
throws java.lang.Exception
java.lang.Exception - should not happenpublic void cleanUp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||