Package org.apache.rave.model

Examples of org.apache.rave.model.OAuthTokenInfo


    public void testFindOAuthTokenInfo_nullValue() throws Exception {
        expect(repository.findOAuthTokenInfo(INVALID_USER, APP_URL, NOT_USED, TOKEN_NAME, SERVICE_NAME))
                .andReturn(null);
        replay(repository);

        OAuthTokenInfo oAuthTokenInfo = service.findOAuthTokenInfo(INVALID_USER, APP_URL, NOT_USED,
                TOKEN_NAME, SERVICE_NAME);

        assertNull(oAuthTokenInfo);

    }
View Full Code Here


    }

    @Test
    public void testDeleteOAuthTokenInfo() {
        OAuthTokenInfo dbOAuthTokenInfo = getOAuthTokenInfo();
        expect(repository.findOAuthTokenInfo(VALID_USER, APP_URL, NOT_USED, TOKEN_NAME, SERVICE_NAME))
                .andReturn(dbOAuthTokenInfo);
        repository.delete(dbOAuthTokenInfo);
        expectLastCall();
        replay(repository);
View Full Code Here

TOP

Related Classes of org.apache.rave.model.OAuthTokenInfo

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.