Code example for CertStoreException

Methods: getCause, getMessage

0
        notes = "Verifies null as a parameter.", 
        method = "CertStoreException", 
        args = {java.lang.Throwable.class}
    ) 
    public void testCertStoreException04() { 
        Throwable cause = null;
        CertStoreException tE = new CertStoreException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CertStoreException(Throwable)</code> constructor 
     * Assertion: constructs CertStoreException when <code>cause</code> is not 
     * null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "CertStoreException", 
        args = {java.lang.Throwable.class}