Code example for GeneralSecurityException

Methods: getCause, getMessage

0
            assertTrue("getMessage() should contain ".concat(toS), (getM
                    .indexOf(toS) != -1));
        } 
        assertNotNull("getCause() must not return null", tE.getCause());
        assertEquals("getCause() must return ".concat(tCause.toString()), tE
                .getCause(), tCause);
    } 
 
    /** 
     * Test for <code>GeneralSecurityException(String, Throwable)</code> 
     * constructor Assertion: constructs GeneralSecurityException when 
     * <code>cause</code> is null <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "GeneralSecurityException", 
        args = {java.lang.String.class, java.lang.Throwable.class}
    ) 
    public void testGeneralSecurityException06() { 
        GeneralSecurityException tE = new GeneralSecurityException(null, null);