Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.IUserRoleListService


    List<String> extraRoles = new ArrayList<String>();
    extraRoles.add( "ROLE3" );
    extraRoles.add( "ROLE4" );

    IUserRoleListService userRoleListService1 = mock( IUserRoleListService.class );

    doReturn( userRoleListService1 ).when( userRoleListService ).getUserRoleListService();
    doReturn( roles ).when( userRoleListService1 ).getAllRoles();
    doReturn( extraRoles ).when( userRoleListService ).getExtraRoles();
View Full Code Here


    systemService = null;
  }

  @Test
  public void testGetUsers() throws Exception {
    IUserRoleListService service = mock( IUserRoleListService.class );
    PentahoSystem.registerObject( service );

    doReturn( true ).when( systemService ).canAdminister();
    assertNotNull( systemService.getUsers() );
View Full Code Here

    PentahoSystem.clearObjectFactory();
  }

  @Test
  public void testGetUsersNoPermission() throws Exception {
    IUserRoleListService service = mock( IUserRoleListService.class );
    PentahoSystem.registerObject( service );

    doReturn( false ).when( systemService ).canAdminister();
    try {
      systemService.getUsers();
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.IUserRoleListService

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.