@PrepareForTest(value={SysUtils.class,NetworkUtils.class,ShellUtils.class}) public class NetworkUtilsTest extends java.lang.Object
Constructor and Description |
---|
NetworkUtilsTest() |
Modifier and Type | Method and Description |
---|---|
void |
testEstablishSSHTunnelIfNeeded()
Test establishSSHTunnelIfNeeded()
|
void |
testGetInetSocketAddress() |
void |
testReadHttpRequestBody() |
void |
testReadHttpRequestBodyFail() |
void |
testReadHttpResponse() |
void |
testReadHttpResponseFail() |
void |
testSendHttpPostRequest() |
void |
testSendHttpPostRequestFail() |
void |
testSendHttpResponse() |
void |
testSendHttpResponseFail() |
public void testSendHttpResponse() throws java.lang.Exception
java.lang.Exception
public void testSendHttpResponseFail() throws java.lang.Exception
java.lang.Exception
public void testReadHttpRequestBody() throws java.lang.Exception
java.lang.Exception
public void testReadHttpRequestBodyFail() throws java.lang.Exception
java.lang.Exception
public void testSendHttpPostRequest() throws java.lang.Exception
java.lang.Exception
public void testSendHttpPostRequestFail() throws java.lang.Exception
java.lang.Exception
public void testReadHttpResponseFail() throws java.lang.Exception
java.lang.Exception
public void testReadHttpResponse() throws java.lang.Exception
java.lang.Exception
public void testEstablishSSHTunnelIfNeeded() throws java.lang.Exception
java.lang.Exception
public void testGetInetSocketAddress() throws java.lang.Exception
java.lang.Exception