Code example for CertificateEncodingException

Methods: getCause, getMessage

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