Code example for CertStoreException

Methods: getCause, getMessage

0
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "CertStoreException", 
        args = {java.lang.String.class}
    ) 
    public void testCertStoreException02() { 
        CertStoreException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new CertStoreException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
                    .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 
     */