Code example for CertStoreException

Methods: getCause, getMessage

0
                    .getMessage(), msgs[i]);
            assertNull("getCause() must return null", tE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>CertStoreException(String)</code> constructor Assertion: 
     * constructs CertStoreException when <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies null asa parameter.", 
        method = "CertStoreException", 
        args = {java.lang.String.class}
    ) 
    public void testCertStoreException03() { 
        String msg = null;
        CertStoreException tE = new CertStoreException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }