use of org.pentaho.platform.plugin.services.security.userrole.memory.InMemoryUserRoleListService in project pentaho-platform by pentaho.
the class InMemoryUserRoleListServiceTest method setUp.
@Before
public void setUp() throws Exception {
dao = new InMemoryUserRoleListService();
dao.setUserRoleListEnhancedUserMap(makeUserRoleListEnhancedUserMap());
dao.setAllRoles(makeAllAuthorities());
Properties prop = new Properties();
prop.load(new ByteArrayInputStream("scott=wombat,ROLE_THREE,ROLE_ONE,enabled\r\nmarissa=koala,ROLE_ONE,ROLE_TWO,enabled".getBytes()));
InMemoryUserDetailsManager wrapped = new InMemoryUserDetailsManager(prop);
// wrapped.setUserMap( makeUserMap() );
// wrapped.afterPropertiesSet();
dao.setUserDetailsService(wrapped);
dao.afterPropertiesSet();
}
Aggregations