Code example for SSLException

Methods: getCause, getMessage

0
    } 
 
    /** 
     * Test for <code>SSLException(String, Throwable)</code> constructor 
     * Assertion: constructs SSLException when <code>cause</code> is null 
     * <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "SSLException", 
        args = {java.lang.String.class, java.lang.Throwable.class}
    ) 
    public void testSSLException05() { 
        SSLException sE = new SSLException(null, null);
        assertNull("getMessage() must return null", sE.getMessage());
        assertNull("getCause() must return null", sE.getCause());
    } 
 
    /** 
     * Test for <code>SSLException(String, Throwable)</code> constructor