Code example for SSLException

Methods: getCause, getMessage

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