| org.apache.harmony.luni.tests.java.net.SocketTestCase
All known Subclasses: org.apache.harmony.luni.tests.java.net.SocketTest, org.apache.harmony.luni.tests.java.net.DatagramSocketTest, org.apache.harmony.luni.tests.java.net.ServerSocketTest, org.apache.harmony.luni.tests.java.net.MulticastSocketTest,
SocketTestCase | abstract public class SocketTestCase extends junit.framework.TestCase (Code) | | |
Method Summary | |
public void | ensureExceptionThrownIfOptionIsUnsupportedOnOS(int option) This method should be called at the end of a socket option test's code
but before the exception catch statements. | public boolean | getOptionIsSupported(int option) Answer whether the OS supports the given socket option. | public void | handleException(Exception e, int option) If the exception is "socket does not support the operation" exception and
it is expected on the current platform, do nothing. |
IP_TOS | final public static int IP_TOS(Code) | | |
SO_BROADCAST | final public static int SO_BROADCAST(Code) | | |
SO_KEEPALIVE | final public static int SO_KEEPALIVE(Code) | | |
SO_LINGER | final public static int SO_LINGER(Code) | | |
SO_MULTICAST | final public static int SO_MULTICAST(Code) | | |
SO_MULTICAST_INTERFACE | final public static int SO_MULTICAST_INTERFACE(Code) | | |
SO_OOBINLINE | final public static int SO_OOBINLINE(Code) | | |
SO_RCVBUF | final public static int SO_RCVBUF(Code) | | |
SO_REUSEADDR | final public static int SO_REUSEADDR(Code) | | |
SO_SNDBUF | final public static int SO_SNDBUF(Code) | | |
SO_TIMEOUT | final public static int SO_TIMEOUT(Code) | | |
SO_USELOOPBACK | final public static int SO_USELOOPBACK(Code) | | |
TCP_NODELAY | final public static int TCP_NODELAY(Code) | | |
SocketTestCase | public SocketTestCase()(Code) | | |
ensureExceptionThrownIfOptionIsUnsupportedOnOS | public void ensureExceptionThrownIfOptionIsUnsupportedOnOS(int option)(Code) | | This method should be called at the end of a socket option test's code
but before the exception catch statements. It throws a failure if the
option given is not supported on the current platform but the VM failed
to throw an exception. So, on platforms which do not support the option,
the execution should never get to this method.
|
getOptionIsSupported | public boolean getOptionIsSupported(int option)(Code) | | Answer whether the OS supports the given socket option.
|
handleException | public void handleException(Exception e, int option)(Code) | | If the exception is "socket does not support the operation" exception and
it is expected on the current platform, do nothing. Otherwise, fail the
test.
|
|
|