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

SSLKeyExceptionTest

public class SSLKeyExceptionTest extends TestCase

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

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

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