Package org.pentaho.platform.plugin.services.security.userrole.memory

Examples of org.pentaho.platform.plugin.services.security.userrole.memory.UserMapFactoryBean


    super.setUp();
  }

  @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.pentaho.platform.plugin.services.security.userrole.memory.UserMapFactoryBean

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.