|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.bytestreams.socks5.Socks5ClientForInitiatorTest
public class Socks5ClientForInitiatorTest
Test for Socks5ClientForInitiator class.
| Constructor Summary | |
|---|---|
Socks5ClientForInitiatorTest()
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Reset default port for local SOCKS5 proxy. |
void |
setup()
Initialize fields used in the tests. |
void |
shouldFailIfActivateSocks5ProxyFails()
If the initiator can connect to a SOCKS5 proxy but activating the stream fails an exception should be thrown. |
void |
shouldFailIfTargetIsNotConnectedToLocalSocks5Proxy()
If the target is not connected to the local SOCKS5 proxy an exception should be thrown. |
void |
shouldSuccessfullyConnectThroughLocalSocks5Proxy()
Initiator and target should successfully connect to the local SOCKS5 proxy. |
void |
shouldSuccessfullyEstablishConnectionAndActivateSocks5Proxy()
Target and initiator should successfully connect to a "remote" SOCKS5 proxy and the initiator activates the bytestream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Socks5ClientForInitiatorTest()
| Method Detail |
|---|
public void setup()
public void shouldFailIfTargetIsNotConnectedToLocalSocks5Proxy()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSuccessfullyConnectThroughLocalSocks5Proxy()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldFailIfActivateSocks5ProxyFails()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSuccessfullyEstablishConnectionAndActivateSocks5Proxy()
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 | |||||||||