]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6573 WS api/metrics/delete fix CustomMeasureTesting using randomAlphanumeric...
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 28 May 2015 12:43:50 +0000 (14:43 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 28 May 2015 12:43:59 +0000 (14:43 +0200)
server/sonar-server/src/test/java/org/sonar/server/custommeasure/persistence/CustomMeasureTesting.java

index 3b21581df74c0f3bb49e5a987cb815a9c95ee7dd..4c89ea9baf5fc555c035e0bf8461ab2e10e73a73 100644 (file)
@@ -32,9 +32,9 @@ public class CustomMeasureTesting {
 
   public static CustomMeasureDto newDto() {
     return new CustomMeasureDto()
-      .setDescription(RandomStringUtils.random(255))
-      .setTextValue(RandomStringUtils.random(255))
-      .setUserLogin(RandomStringUtils.random(255))
+      .setDescription(RandomStringUtils.randomAlphanumeric(255))
+      .setTextValue(RandomStringUtils.randomAlphanumeric(255))
+      .setUserLogin(RandomStringUtils.randomAlphanumeric(255))
       .setValue(RandomUtils.nextDouble())
       .setMetricId(RandomUtils.nextInt())
       .setResourceId(RandomUtils.nextInt())