Code example for GeneralSecurityException

Methods: getCause, getMessage

0
        method = "GeneralSecurityException", 
        args = {java.lang.Throwable.class}
    ) 
    public void testGeneralSecurityException04() { 
        Throwable cause = null;
        GeneralSecurityException tE = new GeneralSecurityException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>GeneralSecurityException(Throwable)</code> constructor 
     * Assertion: constructs GeneralSecurityException when <code>cause</code> 
     * is not null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "GeneralSecurityException", 
        args = {java.lang.Throwable.class}
    )