aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api-impl
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2024-10-08 10:31:31 +0200
committersonartech <sonartech@sonarsource.com>2024-10-14 20:03:04 +0000
commit1e315cf59823550446594a03ca13a6b175341d80 (patch)
tree50f00f41249ae09f11f574c5a4e60ecc3f455586 /sonar-plugin-api-impl
parent1ad3667d30dd82213ae47bea2c267188f003b2c7 (diff)
downloadsonarqube-1e315cf59823550446594a03ca13a6b175341d80.tar.gz
sonarqube-1e315cf59823550446594a03ca13a6b175341d80.zip
NO-JIRA Remove new code issues resulting from the update of the deprecated methods.
Diffstat (limited to 'sonar-plugin-api-impl')
-rw-r--r--sonar-plugin-api-impl/src/test/java/org/sonar/api/config/internal/MultivaluePropertyTest.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/sonar-plugin-api-impl/src/test/java/org/sonar/api/config/internal/MultivaluePropertyTest.java b/sonar-plugin-api-impl/src/test/java/org/sonar/api/config/internal/MultivaluePropertyTest.java
index 1452e78d673..d28c74fd946 100644
--- a/sonar-plugin-api-impl/src/test/java/org/sonar/api/config/internal/MultivaluePropertyTest.java
+++ b/sonar-plugin-api-impl/src/test/java/org/sonar/api/config/internal/MultivaluePropertyTest.java
@@ -116,7 +116,9 @@ public class MultivaluePropertyTest {
return new Object[][] {
{secure().nextAlphanumeric(1)},
{secure().nextAlphanumeric(2)},
- {secure().nextAlphanumeric(3 + new Random().nextInt(5))}
+ {secure().nextAlphanumeric(3)},
+ {secure().nextAlphanumeric(5)},
+ {secure().nextAlphanumeric(8)}
};
}
@@ -215,7 +217,9 @@ public class MultivaluePropertyTest {
return new Object[][] {
{randomTrimmedChars(1, random)},
{randomTrimmedChars(2, random)},
- {randomTrimmedChars(3 + random.nextInt(5), random)}
+ {randomTrimmedChars(3, random)},
+ {randomTrimmedChars(5, random)},
+ {randomTrimmedChars(8, random)}
};
}