]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4535 Add some methods to implement
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 13 Dec 2013 16:36:45 +0000 (17:36 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 13 Dec 2013 16:36:45 +0000 (17:36 +0100)
sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfiles.java
sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfilesTest.java

index a17f8a758d70739c54f4ade78f3e6823151f8bfe..4dec9b612db0a37ce3cf6abb6b3f79f1eb9d6a70 100644 (file)
@@ -57,7 +57,7 @@ public class QProfiles implements ServerComponent {
     operations.renameProfile(name, language, newName, UserSession.get());
   }
 
-  public void setDefaultProfile() {
+  public void updateDefaultProfile() {
     throw new UnsupportedOperationException();
   }
 
@@ -129,6 +129,26 @@ public class QProfiles implements ServerComponent {
     throw new UnsupportedOperationException();
   }
 
+  public void updateParameters(QProfileKey profile, RuleKey ruleKey) {
+    throw new UnsupportedOperationException();
+  }
+
+  public void activeNote(QProfileKey profile, RuleKey ruleKey) {
+    throw new UnsupportedOperationException();
+  }
+
+  public void editNote(QProfileKey profile, RuleKey ruleKey) {
+    throw new UnsupportedOperationException();
+  }
+
+  public void deleteNote(QProfileKey profile, RuleKey ruleKey) {
+    throw new UnsupportedOperationException();
+  }
+
+  public void extendDescription(QProfileKey profile, RuleKey ruleKey) {
+    throw new UnsupportedOperationException();
+  }
+
   // TEMPLATE RULES
 
   public void createTemplateRule() {
index 5294b7ca6420d46b64a95fb048640362594d832b..e53a8499ec846109f5faf6aad68857fb3033cfc9 100644 (file)
@@ -81,7 +81,7 @@ public class QProfilesTest {
 
   @Test(expected = UnsupportedOperationException.class)
   public void testSetDefaultProfile() throws Exception {
-    qProfiles.setDefaultProfile();
+    qProfiles.updateDefaultProfile();
   }
 
   @Test(expected = UnsupportedOperationException.class)
@@ -159,6 +159,31 @@ public class QProfilesTest {
     qProfiles.deactiveRule(null, null);
   }
 
+  @Test(expected = UnsupportedOperationException.class)
+  public void updateParameters() {
+    qProfiles.updateParameters(null, null);
+  }
+
+  @Test(expected = UnsupportedOperationException.class)
+  public void activeNote() {
+    qProfiles.activeNote(null, null);
+  }
+
+  @Test(expected = UnsupportedOperationException.class)
+  public void editNote() {
+    qProfiles.editNote(null, null);
+  }
+
+  @Test(expected = UnsupportedOperationException.class)
+  public void deleteNote() {
+    qProfiles.deleteNote(null, null);
+  }
+
+  @Test(expected = UnsupportedOperationException.class)
+  public void extendDescription() {
+    qProfiles.extendDescription(null, null);
+  }
+
   @Test(expected = UnsupportedOperationException.class)
   public void createTemplateRule() throws Exception {
     qProfiles.createTemplateRule();;