Examples of IUserRoleListService


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

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

    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

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

    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
Copyright © 2018 www.massapi.com. 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.