]> source.dussan.org Git - sonarqube.git/commitdiff
Fix PermissionTemplateServiceTest
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 28 Aug 2015 07:39:53 +0000 (09:39 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 28 Aug 2015 07:39:53 +0000 (09:39 +0200)
server/sonar-server/src/test/java/org/sonar/server/permission/PermissionTemplateServiceTest.java

index 970a14d42aba437dbb947963b1cdce61e2911a01..02cdf8b6c19b22711641624d5984b63ec9d7c82d 100644 (file)
@@ -140,7 +140,7 @@ public class PermissionTemplateServiceTest {
   @Test
   public void should_reject_invalid_key_pattern_on_creation() {
     expected.expect(BadRequestException.class);
-    expected.expectMessage("The 'projectPattern' parameter must be a valid Java regular expression. '[azerty' was passed");
+    expected.expectMessage("The 'projectKeyPattern' parameter must be a valid Java regular expression. '[azerty' was passed");
 
     underTest.createPermissionTemplate(DEFAULT_KEY, DEFAULT_DESC, "[azerty");
   }
@@ -246,7 +246,7 @@ public class PermissionTemplateServiceTest {
   @Test
   public void should_validate_template_key_pattern_on_update_if_applicable() {
     expected.expect(BadRequestException.class);
-    expected.expectMessage("The 'projectPattern' parameter must be a valid Java regular expression. '[azerty' was passed");
+    expected.expectMessage("The 'projectKeyPattern' parameter must be a valid Java regular expression. '[azerty' was passed");
 
     PermissionTemplateDto template1 = new PermissionTemplateDto().setId(1L).setName("template1").setDescription("template1");
     when(permissionTemplateDao.selectAllPermissionTemplates()).thenReturn(Lists.newArrayList(template1));