Code example for CRLException

Methods: getCausegetMessage

0
     * Test for <code>CRLException(String, Throwable)</code> constructor 
     * Assertion: constructs CRLException when <code>cause</code> is not null 
     * <code>msg</code> is null 
     */ 
    public void testCRLException08() { 
        CRLException tE = new CRLException(null, tCause);
        if (tE.getMessage() != null) {
            String toS = tCause.toString();
            String getM = tE.getMessage();
            assertTrue("getMessage() must should ".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 not null 
Stop searching for code, let great code find you!  Add Codota to your java IDE