Code example for SSLException

Methods: getCausegetMessage

0
     * Test for <code>DigestException(Throwable)</code> constructor Assertion: 
     * constructs DigestException when <code>cause</code> is null 
     */ 
    public void testSSLException03() { 
        Throwable cause = null;
        SSLException tE = new SSLException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>SSLException(Throwable)</code> constructor Assertion: 
     * constructs SSLException when <code>cause</code> is not null 
     */ 
    public void testSSLException04() { 
        SSLException tE = new SSLException(tCause);
        if (tE.getMessage() != null) {
            String toS = tCause.toString();
            String getM = tE.getMessage();
            assertTrue("getMessage() should contain ".concat(toS), (getM
Stop searching for code, let great code find you!  Add Codota to your java IDE