FileDocCategorySizeDatePackage
SSLHandshakeExceptionTest.javaAPI DocAndroid 1.5 API2616Wed May 06 22:41:06 BST 2009tests.api.javax.net.ssl

SSLHandshakeExceptionTest

public class SSLHandshakeExceptionTest extends TestCase

Fields Summary
private static String[]
msgs
Constructors Summary
Methods Summary
public voidtest_Constructor01()
Test for SSLHandshakeException(String) constructor Assertion: constructs SSLHandshakeException with detail message msg. Parameter msg is not null.

        SSLHandshakeException sslE;
        for (int i = 0; i < msgs.length; i++) {
            sslE = new SSLHandshakeException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), sslE.getMessage(), msgs[i]);
            assertNull("getCause() must return null", sslE.getCause());
        }
    
public voidtest_Constructor02()
Test for SSLHandshakeException(String) constructor Assertion: constructs SSLHandshakeException with detail message msg. Parameter msg is null.

        String msg = null;
        SSLHandshakeException sslE = new SSLHandshakeException(msg);
        assertNull("getMessage() must return null.", sslE.getMessage());
        assertNull("getCause() must return null", sslE.getCause());