Package org.jtalks.common.service.security

Examples of org.jtalks.common.service.security.SecurityContextHolderFacade


        authenticator = mock(Authenticator.class);
        requestContextUtils = mock(RequestContextUtils.class);
        localeResolver = mock(LocaleResolver.class, "en");
        request = mock(HttpServletRequest.class);
        response = mock(HttpServletResponse.class);
        SecurityContextHolderFacade securityFacade = mock(SecurityContextHolderFacade.class);
        SecurityContext securityContext = mock(SecurityContext.class);
        when(securityFacade.getContext()).thenReturn(securityContext);
        when(request.getHeader("X-FORWARDED-FOR")).thenReturn("192.168.1.1");
        userController = new UserController(userService, authenticator, pluginService, userService);
    }
View Full Code Here

TOP

Related Classes of org.jtalks.common.service.security.SecurityContextHolderFacade

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.