]> source.dussan.org Git - sonarqube.git/commitdiff
[NO-JIRA] remove assumption on a random value that could fail
authorSteve Marion <unknown>
Thu, 23 Feb 2023 13:34:44 +0000 (14:34 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 23 Feb 2023 20:03:01 +0000 (20:03 +0000)
server/sonar-db-dao/src/test/java/org/sonar/db/alm/setting/AlmSettingDaoWithPersisterTest.java

index 27eea5520d03a40534adce526a690f3bb01cbf1e..12bd69ae0ae0af0b6fc7b47ed5c2b4ba56d6d040 100644 (file)
@@ -107,6 +107,6 @@ public class AlmSettingDaoWithPersisterTest {
     assertThat(newValue)
       .extracting("devOpsPlatformSettingUuid", "key")
       .containsExactly(almSettingDto.getUuid(), almSettingDto.getKey());
-    assertThat(newValue.toString()).doesNotContain("url");
+    assertThat(newValue.getUrl()).isNullOrEmpty();
   }
 }