Code example for SSLException

Methods: getCause, getMessage

0
    ) 
    public void testSSLException01() { 
        SSLException sE;
        for (int i = 0; i < msgs.length; i++) {
            sE = new SSLException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), sE.getMessage(), msgs[i]);
            assertNull("getCause() must return null", sE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>SSLException(String)</code> constructor Assertion: 
     * constructs SSLException when <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "SSLException", 
        args = {java.lang.String.class}
    ) 
    public void testSSLException02() {