Code example for CRLException

Methods: getCausegetMessage

0
    /** 
     * Test for <code>CRLException()</code> constructor Assertion: constructs 
     * CRLException with no detail message 
     */ 
    public void testCRLException01() { 
        CRLException tE = new CRLException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CRLException(String)</code> constructor Assertion: 
     * constructs CRLException with detail message msg. Parameter 
     * <code>msg</code> is not null. 
     */ 
    public void testCRLException02() { 
        CRLException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new CRLException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
                    .getMessage(), msgs[i]);