Code example for CRLException

Methods: getMessage

0
    /** 
     * X509CRLEntry() method testing. Tests for creating object. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "X509CRLEntry", 
        args = {} 
    ) 
    public void testX509CRLEntry() { 
        TBTCRLEntry tbt_crlentry = new TBTCRLEntry();
         
        assertNull(tbt_crlentry.getCertificateIssuer());
        assertNull(tbt_crlentry.getCriticalExtensionOIDs());
        try { 
            assertNull(tbt_crlentry.getEncoded());
        } catch (CRLException e) {
            fail("Unexpected exception " + e.getMessage());
        } 
        assertNull(tbt_crlentry.getNonCriticalExtensionOIDs());
        assertNull(tbt_crlentry.getRevocationDate());