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

SSLPeerUnverifiedExceptionTest

public class SSLPeerUnverifiedExceptionTest extends TestCase

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

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

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