From 680f1e0dd4d2b72e7eac70920ba153a60c9cb006 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 26 Aug 2014 15:28:51 +0200 Subject: SONAR-4963 Return description in /permission_templates/search_groups --- .../sonar/core/permission/GroupWithPermissionTemplateDaoTest.java | 4 ++++ .../GroupWithPermissionTemplateDaoTest/groups_with_permissions.xml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'sonar-core/src/test') diff --git a/sonar-core/src/test/java/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest.java b/sonar-core/src/test/java/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest.java index f91e616233a..8f3ee7d8ae2 100644 --- a/sonar-core/src/test/java/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest.java @@ -51,18 +51,22 @@ public class GroupWithPermissionTemplateDaoTest extends AbstractDaoTestCase { GroupWithPermissionDto anyone = result.get(0); assertThat(anyone.getName()).isEqualTo("Anyone"); + assertThat(anyone.getDescription()).isNull(); assertThat(anyone.getPermission()).isNotNull(); GroupWithPermissionDto group1 = result.get(1); assertThat(group1.getName()).isEqualTo("sonar-administrators"); + assertThat(group1.getDescription()).isEqualTo("System administrators"); assertThat(group1.getPermission()).isNotNull(); GroupWithPermissionDto group2 = result.get(2); assertThat(group2.getName()).isEqualTo("sonar-reviewers"); + assertThat(group2.getDescription()).isEqualTo("Reviewers"); assertThat(group2.getPermission()).isNull(); GroupWithPermissionDto group3 = result.get(3); assertThat(group3.getName()).isEqualTo("sonar-users"); + assertThat(group3.getDescription()).isEqualTo("Any new users created will automatically join this group"); assertThat(group3.getPermission()).isNotNull(); } diff --git a/sonar-core/src/test/resources/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest/groups_with_permissions.xml b/sonar-core/src/test/resources/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest/groups_with_permissions.xml index 38240ab4255..8d6592cbc11 100644 --- a/sonar-core/src/test/resources/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest/groups_with_permissions.xml +++ b/sonar-core/src/test/resources/org/sonar/core/permission/GroupWithPermissionTemplateDaoTest/groups_with_permissions.xml @@ -1,8 +1,8 @@ - - - + + + -- cgit v1.2.3