Package org.springframework.security.userdetails.memory

Examples of org.springframework.security.userdetails.memory.UserMap


  @Test
  public void testGetObject() throws Exception {
    UserMapFactoryBean bean = new UserMapFactoryBean();
    bean.setUserMap( userMapText );
    UserMap map = (UserMap) bean.getObject();
    assertNotNull( map.getUser( "admin" ) ); //$NON-NLS-1$
    assertNotNull( map.getUser( "tiffany" ) ); //$NON-NLS-1$
    // Next assert is unnecessary as by contract, the getUser returns a UserDetails
    // assertTrue(map.getUser("admin") instanceof UserDetails); //$NON-NLS-1$
    // System.out.println(map.getUser("admin"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.security.userdetails.memory.UserMap

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.