Package com.streamreduce.core.service

Examples of com.streamreduce.core.service.SecurityService


        User anotherUser = new User.Builder().username("justinc@toolband.com").fullname("Justin Chancellor").password("bass")
                .alias("justinc").account(testAccount).build();
        userService.createUser(anotherUser);

        SecurityService mockSecurityService = mock(SecurityService.class);
        when(mockSecurityService.getCurrentUser()).thenReturn(anotherUser);

        userResource.securityService = mockSecurityService;

        JSONObject updateUserJson = new JSONObject();
        updateUserJson.put("fullname", "justinc");
View Full Code Here


    }

    @Test
    public void testChangeUserProfileDoesNotAllowAtSymbolInFront() {
        //Tests another condition of SOBA-1875 specifically - @ isn't allowed as first character in a user alias.
        SecurityService mockSecurityService = mock(SecurityService.class);
        when(mockSecurityService.getCurrentUser()).thenReturn(testUser);

        userResource.securityService = mockSecurityService;

        JSONObject updateUserJson = new JSONObject();
        updateUserJson.put("fullname", "testUser");
View Full Code Here

    UserResource userResource;

    @Before
    public void setUp() throws Exception {
        super.setUp();
        SecurityService mockSecurityService = mock(SecurityService.class);
        when(mockSecurityService.getCurrentUser()).thenReturn(testUser);
        userResource.securityService = mockSecurityService;
    }
View Full Code Here

    ResourceBundle webhdfsProperties = ResourceBundle.getBundle("webhdfs");

    @Before
    public void setUp() throws Exception {
        super.setUp();
        SecurityService testUserSecurityService = mock(SecurityService.class);

        when(testUserSecurityService.getCurrentUser()).thenReturn(testUser);

        ReflectionTestUtils.setField(connectionResource, "securityService", testUserSecurityService);
    }
View Full Code Here

TOP

Related Classes of com.streamreduce.core.service.SecurityService

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.