Package org.pentaho.platform.security.policy.rolebased.actions

Examples of org.pentaho.platform.security.policy.rolebased.actions.AdministerSecurityAction


  @Test
  public void testDoValidateAuth() {

    IAuthorizationPolicy policy = mock( IAuthorizationPolicy.class );
    List<IAuthorizationAction> actions = new ArrayList();
    actions.add( new AdministerSecurityAction() );

    doReturn( actions ).when( authorizationActionService ).getActionList();
    doReturn( policy ).when( authorizationActionService ).getPolicy();
    doReturn( true ).when( policy ).isAllowed( "org.pentaho.security.administerSecurity" );
    boolean isAllowed = authorizationActionService.validateAuth( "org.pentaho.security.administerSecurity" );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.security.policy.rolebased.actions.AdministerSecurityAction

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.