Code example for CertificateException

Methods: getCausegetMessage

0
     * Test for <code>CertificateException(String, Throwable)</code> 
     * constructor Assertion: constructs CertificateException when 
     * <code>cause</code> is null <code>msg</code> is null 
     */ 
    public void testCertificateException06() { 
        CertificateException tE = new CertificateException(null, null);
        assertNull("getMessage() must return null", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CertificateException(String, Throwable)</code> 
     * constructor Assertion: constructs CertificateException when 
     * <code>cause</code> is null <code>msg</code> is not null 
     */ 
    public void testCertificateException07() { 
        CertificateException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new CertificateException(msgs[i], null);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
Contextual code suggestions in your IDE  Get Codota for Java