searches.add( usernamesInRoleSearch );
searches.add( usernamesInRoleSearch2 );
UnionizingLdapSearch unionSearch = new UnionizingLdapSearch( searches );
unionSearch.afterPropertiesSet();
DefaultLdapUserRoleListService userRoleListService = new DefaultLdapUserRoleListService();
userRoleListService.setUsernamesInRoleSearch( unionSearch );
List<String> res = userRoleListService.getUsersInRole( null, "DEV" ); //$NON-NLS-1$
assertTrue( res.contains( "pat" ) ); //$NON-NLS-1$
assertTrue( res.contains( "tiffany" ) ); //$NON-NLS-1$
if ( logger.isDebugEnabled() ) {
logger.debug( "results of getUsernamesInRole4() with role=ROLE_DEV: " + res ); //$NON-NLS-1$
}
res = userRoleListService.getUsersInRole( null, "DEVELOPMENT" ); //$NON-NLS-1$
assertTrue( res.contains( "pat" ) ); //$NON-NLS-1$
assertTrue( res.contains( "tiffany" ) ); //$NON-NLS-1$
if ( logger.isDebugEnabled() ) {