aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common/src/test/java
diff options
context:
space:
mode:
authorJacek Poreda <jacek.poreda@sonarsource.com>2023-08-10 10:33:25 +0200
committersonartech <sonartech@sonarsource.com>2023-08-18 20:02:49 +0000
commit177da8d8b082ad4688524d8f3ecea9bee624d09b (patch)
tree0923e3ac529b086de0f9d42c0e8f3129e5c6e079 /server/sonar-server-common/src/test/java
parent2b456da715b2650a1519a4d273119b01388396df (diff)
downloadsonarqube-177da8d8b082ad4688524d8f3ecea9bee624d09b.tar.gz
sonarqube-177da8d8b082ad4688524d8f3ecea9bee624d09b.zip
SONAR-20021 Update Issues web apis with Clean Code Taxonomy
Diffstat (limited to 'server/sonar-server-common/src/test/java')
-rw-r--r--server/sonar-server-common/src/test/java/org/sonar/server/issue/SearchRequestTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/issue/SearchRequestTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/issue/SearchRequestTest.java
index f5f7f0620c1..63812baa036 100644
--- a/server/sonar-server-common/src/test/java/org/sonar/server/issue/SearchRequestTest.java
+++ b/server/sonar-server-common/src/test/java/org/sonar/server/issue/SearchRequestTest.java
@@ -19,6 +19,7 @@
*/
package org.sonar.server.issue;
+import java.util.List;
import org.junit.Test;
import static java.util.Arrays.asList;
@@ -54,7 +55,10 @@ public class SearchRequestTest {
.setOwaspAsvsLevel(2)
.setPciDss32(asList("1", "4"))
.setPciDss40(asList("3", "5"))
- .setCodeVariants(asList("variant1", "variant2"));
+ .setCodeVariants(asList("variant1", "variant2"))
+ .setCleanCodeAttributesCategories(singletonList("ADAPTABLE"))
+ .setImpactSeverities(List.of("HIGH", "LOW"))
+ .setImpactSoftwareQualities(List.of("RELIABILITY", "SECURITY"));
assertThat(underTest.getIssues()).containsOnlyOnce("anIssueKey");
assertThat(underTest.getSeverities()).containsExactly("MAJOR", "MINOR");
@@ -81,6 +85,9 @@ public class SearchRequestTest {
assertThat(underTest.getPciDss32()).containsExactly("1", "4");
assertThat(underTest.getPciDss40()).containsExactly("3", "5");
assertThat(underTest.getCodeVariants()).containsExactly("variant1", "variant2");
+ assertThat(underTest.getCleanCodeAttributesCategories()).containsExactly("ADAPTABLE");
+ assertThat(underTest.getImpactSeverities()).containsExactly("HIGH", "LOW");
+ assertThat(underTest.getImpactSoftwareQualities()).containsExactly("RELIABILITY", "SECURITY");
}
@Test