Package org.jtalks.jcommune.service.dto

Examples of org.jtalks.jcommune.service.dto.UserNotificationsContainer


     *
     * @return user profile modification info for the service tier
     */
    public UserNotificationsContainer getUserNotificationsContainer() {
        UserNotificationsDto dto = this.getUserNotificationsDto();
        return new UserNotificationsContainer(dto.isAutosubscribe(),
                dto.isMentioningNotificationsEnabled(), dto.isSendPmNotification());
    }
View Full Code Here


        when(encryptionService.encryptPassword(NEW_PASSWORD)).thenReturn(NEW_PASSWORD_MD5_HASH);
        when(userDao.isExist(USER_ID)).thenReturn(Boolean.TRUE);
        when(userDao.get(USER_ID)).thenReturn(user);

        JCUser editedUser = userService.saveEditedUserNotifications(USER_ID,
                new UserNotificationsContainer(true, false, false));

        verify(userDao).saveOrUpdate(user);

        assertEquals(editedUser.isAutosubscribe(), true, "Autosubscribe was not changed");
        assertEquals(editedUser.isSendPmNotification(), false, "Send pm notification was not changed");
View Full Code Here

        when(encryptionService.encryptPassword(NEW_PASSWORD)).thenReturn(NEW_PASSWORD_MD5_HASH);
        when(userDao.isExist(USER_ID)).thenReturn(Boolean.TRUE);
        when(userDao.get(USER_ID)).thenReturn(user);

        JCUser editedUser = userService.saveEditedUserNotifications(USER_ID,
                new UserNotificationsContainer(true, false, false));

        verify(userDao).saveOrUpdate(user);

        assertUserProfileAndSecurityAreSame(user, editedUser);
        assertEquals(editedUser.getLanguage(), Language.ENGLISH, "language was changed");
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.service.dto.UserNotificationsContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.