diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-02-10 01:03:24 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-02-10 23:32:48 +0100 |
commit | 4872092c687a2f5e9d91db44c2fc8ca6dcdc2081 (patch) | |
tree | 350da42caa9a40536fa97bbf5576684fe24929bb /sonar-db/src/test/java/org | |
parent | 20d28db2bd1b67d9d7f09ce19766318ef44d7fb5 (diff) | |
download | sonarqube-4872092c687a2f5e9d91db44c2fc8ca6dcdc2081.tar.gz sonarqube-4872092c687a2f5e9d91db44c2fc8ca6dcdc2081.zip |
SONAR-8761 clean-up UserPermissionDao
Diffstat (limited to 'sonar-db/src/test/java/org')
-rw-r--r-- | sonar-db/src/test/java/org/sonar/db/permission/UserPermissionDaoTest.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sonar-db/src/test/java/org/sonar/db/permission/UserPermissionDaoTest.java b/sonar-db/src/test/java/org/sonar/db/permission/UserPermissionDaoTest.java index 837500eb7d7..528cd03b971 100644 --- a/sonar-db/src/test/java/org/sonar/db/permission/UserPermissionDaoTest.java +++ b/sonar-db/src/test/java/org/sonar/db/permission/UserPermissionDaoTest.java @@ -320,15 +320,6 @@ public class UserPermissionDaoTest { } @Test - public void projectHasPermissions() { - addGlobalPermission(organizationDto, SYSTEM_ADMIN, user1); - addProjectPermission(organizationDto, USER, user1, project1); - - assertThat(underTest.hasRootComponentPermissions(dbSession, project1.getId())).isTrue(); - assertThat(underTest.hasRootComponentPermissions(dbSession, project2.getId())).isFalse(); - } - - @Test public void selectGlobalPermissionsOfUser() { OrganizationDto org = dbTester.organizations().insert(); addGlobalPermission(dbTester.getDefaultOrganization(), "perm1", user1); @@ -405,8 +396,8 @@ public class UserPermissionDaoTest { private void verifyOrganizationUuidsInTable(String... organizationUuids) { assertThat(dbTester.select("select organization_uuid as \"organizationUuid\" from user_roles")) - .extracting((row) -> (String) row.get("organizationUuid")) - .containsOnly(organizationUuids); + .extracting((row) -> (String) row.get("organizationUuid")) + .containsOnly(organizationUuids); } private void expectCount(List<Long> projectIds, CountPerProjectPermission... expected) { |