Package org.springframework.social.github.api

Examples of org.springframework.social.github.api.UserOperations


    @Test
    public void createOrUpdateMemberProfileOnLogin() {
        GitHubUserProfile userProfile =
                new GitHubUserProfile(1234L, username, name, location, "", "", email, avatarUrl, null);
        UserOperations userOperations = mock(UserOperations.class);

        given(userOperations.getUserProfile()).willReturn(userProfile);
        given(gitHub.userOperations()).willReturn(userOperations);

        signInService.getOrCreateMemberProfile(1234L, gitHub);

        verify(teamService).createOrUpdateMemberProfile(1234L, username, avatarUrl, name);
View Full Code Here

TOP

Related Classes of org.springframework.social.github.api.UserOperations

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.