Code example for GeneralSecurityException

Methods: getCause, getMessage

0
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "GeneralSecurityException", 
        args = {java.lang.String.class}
    ) 
    public void testGeneralSecurityException02() { 
        GeneralSecurityException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new GeneralSecurityException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
                    .getMessage(), msgs[i]);
            assertNull("getCause() must return null", tE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>GeneralSecurityException(String)</code> constructor 
     * Assertion: constructs GeneralSecurityException when <code>msg</code> is 
     * null 
     */ 
    @TestTargetNew(