Code example for CRLException

Methods: getCausegetMessage

0
     * Test for <code>CRLException(Throwable)</code> constructor Assertion: 
     * constructs CRLException when <code>cause</code> is null 
     */ 
    public void testCRLException04() { 
        Throwable cause = null;
        CRLException tE = new CRLException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CRLException(Throwable)</code> constructor Assertion: 
     * constructs CRLException when <code>cause</code> is not null 
     */ 
    public void testCRLException05() { 
        CRLException tE = new CRLException(tCause);
        if (tE.getMessage() != null) {
            String toS = tCause.toString();
            String getM = tE.getMessage();
            assertTrue("getMessage() should contain ".concat(toS), (getM
Contextual code suggestions in your IDE  Get Codota for Java