Code example for LoginException

Methods: getCause, getMessage

0
     * javax.security.auth.login.LoginException#LoginException(String msg) 
     * Assertion: constructs with null parameter. 
     */ 
    public void testLoginException03() { 
        String msg = null;
        LoginException lE = new LoginException(msg);
        assertNull("getMessage() must return null.", lE.getMessage());
        assertNull("getCause() must return null", lE.getCause());
    } 
}