aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/test/java/org
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-02-10 01:03:24 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-02-10 23:32:48 +0100
commit4872092c687a2f5e9d91db44c2fc8ca6dcdc2081 (patch)
tree350da42caa9a40536fa97bbf5576684fe24929bb /sonar-db/src/test/java/org
parent20d28db2bd1b67d9d7f09ce19766318ef44d7fb5 (diff)
downloadsonarqube-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.java13
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) {