Package org.sonar.core.user

Examples of org.sonar.core.user.AuthorizationDao


    session.checkComponentPermission(UserRole.USER, "com.foo:Bar:BarFile.xoo");
  }

  @Test(expected = ForbiddenException.class)
  public void check_component_permission_when_project_not_found() throws Exception {
    AuthorizationDao authorizationDao = mock(AuthorizationDao.class);
    ResourceDao resourceDao = mock(ResourceDao.class);
    UserSession session = new SpyUserSession("marius", authorizationDao, resourceDao).setUserId(1);

    when(resourceDao.getRootProjectByComponentKey("com.foo:Bar:BarFile.xoo")).thenReturn(null);
View Full Code Here

TOP

Related Classes of org.sonar.core.user.AuthorizationDao

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.