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

SSLProtocolExceptionTest

public class SSLProtocolExceptionTest extends TestCase

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

        SSLProtocolException sslE;
        for (int i = 0; i < msgs.length; i++) {
            sslE = new SSLProtocolException(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 SSLProtocolException(String) constructor Assertion: constructs SSLProtocolException with detail message msg. Parameter msg is null.

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