Package org.apache.rave.portal.service

Examples of org.apache.rave.portal.service.UserService


    }


    @Before
    public void setUp() throws Exception {
        UserService mockUserService = createMock(UserService.class);
        validator = new UserProfileValidator(mockUserService);
    }
View Full Code Here


    private ChangePasswordValidator passwordValidator;
    private ChangePasswordController controller;

    @Before
    public void setUp() throws Exception {
        UserService userService = createNiceMock(UserService.class);

        expect(userService.isValidReminderRequest(null, 0)).andReturn(true).anyTimes();
        replay(userService);
        passwordValidator = new ChangePasswordValidator(userService);
        controller = new ChangePasswordController(userService, passwordValidator);
    }
View Full Code Here

    private ReminderController controller;

    @Before
    public void setUp() throws Exception {

        UserService userService = createNiceMock(UserService.class);
        replay(userService);
        request = new MockHttpServletRequest();
        NewPasswordValidator passwordValidator = new NewPasswordValidator(userService);
        captchaService = new ReCaptchaService(false, null, null, false, "error message");
        controller = new ReminderController(userService, passwordValidator, captchaService);
View Full Code Here

    private ChangePasswordValidator passwordValidator;
    private ChangePasswordController controller;

    @Before
    public void setUp() throws Exception {
        UserService userService = createNiceMock(UserService.class);

        expect(userService.isValidReminderRequest(null, 0)).andReturn(true).anyTimes();
        replay(userService);
        passwordValidator = new ChangePasswordValidator(userService);
        controller = new ChangePasswordController(userService, passwordValidator);
    }
View Full Code Here

       
        allWidgetStatisticsMap = new HashMap<Long, WidgetStatistics>();
        allWidgetStatisticsMap.put(WIDGET_ID, widgetStatistics);
       
        widgetService = createMock(WidgetService.class);
        UserService userService = createMock(UserService.class);       
        expect(userService.getAuthenticatedUser()).andReturn(validUser);
        replay(userService);
        NewWidgetValidator widgetValidator = new NewWidgetValidator();
        controller = new WidgetStoreController(widgetService, widgetValidator, userService);
    }
View Full Code Here

    private ReminderController controller;

    @Before
    public void setUp() throws Exception {

        UserService userService = createNiceMock(UserService.class);
        replay(userService);
        request = new MockHttpServletRequest();
        NewPasswordValidator passwordValidator = new NewPasswordValidator(userService);
        captchaService = new ReCaptchaService(false, null, null, false, "error message");
        controller = new ReminderController(userService, passwordValidator, captchaService);
View Full Code Here

    }


    @Before
    public void setUp() throws Exception {
        UserService mockUserService = createMock(UserService.class);
        validator = new UserProfileValidator(mockUserService);
    }
View Full Code Here

    private ChangePasswordValidator passwordValidator;
    private ChangePasswordController controller;

    @Before
    public void setUp() throws Exception {
        UserService userService = createNiceMock(UserService.class);

        expect(userService.isValidReminderRequest(null, 0)).andReturn(true).anyTimes();
        replay(userService);
        passwordValidator = new ChangePasswordValidator(userService);
        controller = new ChangePasswordController(userService, passwordValidator);
    }
View Full Code Here

        allWidgetStatisticsMap = new HashMap<Long, WidgetStatistics>();
        allWidgetStatisticsMap.put(WIDGET_ID, widgetStatistics);

        widgetService = createMock(WidgetService.class);

        UserService userService = createMock(UserService.class);
        expect(userService.getAuthenticatedUser()).andReturn(validUser);
        replay(userService);

        PortalPreferenceService preferenceService = createMock(PortalPreferenceService.class);
        expect(preferenceService.getPreference(PortalPreferenceKeys.PAGE_SIZE)).andReturn(null);
        replay(preferenceService);
View Full Code Here

        widgetService = createMock(WidgetService.class);
        tagService = createMock(TagService.class);
        categoryService = createMock(CategoryService.class);

        UserService userService = createMock(UserService.class);
        expect(userService.getAuthenticatedUser()).andReturn(validUser);
        replay(userService);

        PortalPreferenceService preferenceService = createMock(PortalPreferenceService.class);
        expect(preferenceService.getPreference(PortalPreferenceKeys.INITIAL_WIDGET_STATUS)).andReturn(null);
        expect(preferenceService.getPreference(PortalPreferenceKeys.PAGE_SIZE)).andReturn(null);
View Full Code Here

TOP

Related Classes of org.apache.rave.portal.service.UserService

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.