Code example for SSLException

Methods: getCausegetMessage

0
     * Test for <code>SSLException(String, Throwable)</code> constructor 
     * Assertion: constructs SSLException when <code>cause</code> is null 
     * <code>msg</code> is null 
     */ 
    public void testSSLException05() { 
        SSLException tE = new SSLException(null, null);
        assertNull("getMessage() must return null", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>SSLException(String, Throwable)</code> constructor 
     * Assertion: constructs SSLException when <code>cause</code> is null 
     * <code>msg</code> is not null 
     */ 
    public void testSSLException06() { 
        SSLException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new SSLException(msgs[i], null);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
Connect your IDE to all the code out there  Get Codota for Java