TestNetUtils
Test the network utilities from {@link NetUtils}.
| Methods |
| static void |
main(String... a)
Run just this test.
|
| static void |
main(String... a) throws Exception
Run just this test.
Parameters:
a - ignored
|
| void |
closeSilently(Socket socket)
Close a socket, ignoring errors
|
| void |
closeSilently(Socket socket)
Close a socket, ignoring errors
Parameters:
socket - the socket
|
| void |
closeSilently(ServerSocket socket)
Close a server socket, ignoring errors
|
| void |
closeSilently(ServerSocket socket)
Close a server socket, ignoring errors
Parameters:
socket - the server socket
|
| void |
test()
|
| void |
test() throws Exception
|
|