Code example for CRLException

Methods: getCausegetMessage

0
    /** 
     * 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
                    .indexOf(toS) != -1));
        } 
        assertNotNull("getCause() must not return null", tE.getCause());
        assertEquals("getCause() must return ".concat(tCause.toString()), tE
                .getCause(), tCause);
    } 
 
    /** 
     * Test for <code>CRLException(String, Throwable)</code> constructor 
     * Assertion: constructs CRLException when <code>cause</code> is null 
Experience pair programming with AI  Get Codota for Java