Package org.springframework.security.config.authentication

Examples of org.springframework.security.config.authentication.CachingUserDetailsService


    @Test
    public void cacheRefIsparsedCorrectly() {
        setContext("<jdbc-user-service id='myUserService' cache-ref='userCache' data-source-ref='dataSource'/>"
                + DATA_SOURCE +USER_CACHE_XML);
        CachingUserDetailsService cachingUserService =
            (CachingUserDetailsService) appContext.getBean("myUserService" + AbstractUserDetailsServiceBeanDefinitionParser.CACHING_SUFFIX);
        assertSame(cachingUserService.getUserCache(), appContext.getBean("userCache"));
        assertNotNull(cachingUserService.loadUserByUsername("rod"));
        assertNotNull(cachingUserService.loadUserByUsername("rod"));
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.config.authentication.CachingUserDetailsService

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.