Code example for CertStoreException

Methods: getCause, getMessage

0
        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());
    } 
 
    /** 
     * Test for <code>CertStoreException(Throwable)</code> constructor 
     * Assertion: constructs CertStoreException when <code>cause</code> is 
     * null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies null as a parameter.", 
        method = "CertStoreException", 
        args = {java.lang.Throwable.class}