Code example for CertificateException

Methods: getCause, getMessage

0
            "", 
            "Check new message", 
            "Check new message Check new message Check new message Check new message Check new message" }; 
 
    static Throwable tCause = new Throwable("Throwable for exception");
 
    /** 
     * Test for <code>CertificateException()</code> constructor Assertion: 
     * constructs CertificateException with no detail message 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "CertificateException", 
        args = {} 
    ) 
    public void testCertificateException01() { 
        CertificateException tE = new CertificateException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }