]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8716 deprecate UserSessionRule#setGlobalPermissions()
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 2 Feb 2017 12:35:46 +0000 (13:35 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 7 Feb 2017 13:22:42 +0000 (14:22 +0100)
server/sonar-server/src/test/java/org/sonar/server/tester/UserSessionRule.java

index 6f37f9dc0955d40486fa55f8d6f84012ce1b21eb..5cdbc97649ee6693f1e73c79eedf3250415ab02d 100644 (file)
@@ -177,6 +177,10 @@ public class UserSessionRule implements TestRule, UserSession {
     setCurrentUserSession(userSession);
   }
 
+  /**
+   * This method does not support organizations
+   */
+  @Deprecated
   public UserSessionRule setGlobalPermissions(String... globalPermissions) {
     ensureAbstractMockUserSession().setGlobalPermissions(globalPermissions);
     return this;