]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality Gate
authorDamien Urruty <damien.urruty@sonarsource.com>
Thu, 21 Nov 2024 21:24:57 +0000 (22:24 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 22 Nov 2024 20:03:09 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/it/java/org/sonar/server/qualityprofile/ws/ChangeParentActionIT.java

index af009bc29b2f3b3ac49821e87eb191c5db1664a1..954e60ac961321f9e1004ce362ee0816ae258114 100644 (file)
@@ -75,7 +75,7 @@ import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.
 import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.PARAM_PARENT_QUALITY_PROFILE;
 import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.PARAM_QUALITY_PROFILE;
 
-public class ChangeParentActionIT {
+class ChangeParentActionIT {
 
   @RegisterExtension
   private final DbTester db = DbTester.create(System2.INSTANCE);
@@ -93,8 +93,7 @@ public class ChangeParentActionIT {
   private final Language language = LanguageTesting.newLanguage(secure().nextAlphanumeric(20));
   private final String ruleRepository = secure().nextAlphanumeric(5);
   private QProfileTreeImpl qProfileTree;
-  private SonarQubeVersion sonarQubeVersion;
-  private final  Configuration config = mock(Configuration.class);
+  private final Configuration config = mock(Configuration.class);
 
   @BeforeEach
   void setUp() {
@@ -105,7 +104,7 @@ public class ChangeParentActionIT {
     ruleIndexer = new RuleIndexer(esClient, dbClient);
     activeRuleIndexer = new ActiveRuleIndexer(dbClient, esClient);
     TypeValidations typeValidations = new TypeValidations(Collections.emptyList());
-    sonarQubeVersion = new SonarQubeVersion(Version.create(10, 3));
+    var sonarQubeVersion = new SonarQubeVersion(Version.create(10, 3));
     RuleActivator ruleActivator = new RuleActivator(System2.INSTANCE, dbClient, UuidFactoryImpl.INSTANCE, typeValidations, userSession, mock(Configuration.class),
       sonarQubeVersion);
     qProfileTree = new QProfileTreeImpl(dbClient, ruleActivator, System2.INSTANCE, activeRuleIndexer, mock(QualityProfileChangeEventService.class));