Code example for CRLException

Methods: getCausegetMessage

0
     * Test for <code>CRLException(String, Throwable)</code> constructor 
     * Assertion: constructs CRLException when <code>cause</code> is null 
     * <code>msg</code> is null 
     */ 
    public void testCRLException06() { 
        CRLException tE = new CRLException(null, null);
        assertNull("getMessage() must return null", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CRLException(String, Throwable)</code> constructor 
     * Assertion: constructs CRLException when <code>cause</code> is null 
     * <code>msg</code> is not null 
     */ 
    public void testCRLException07() { 
        CRLException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new CRLException(msgs[i], null);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
Stop searching for code, let great code find you!  Add Codota to your java IDE