aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/rules
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-11-18 09:08:40 -0600
committersonartech <sonartech@sonarsource.com>2021-11-18 20:03:33 +0000
commit9f7a5068bb26f2760332c6e0bacec424e2edd47a (patch)
tree51ff128c6f77d1d15db5abe7960a90c74ee3d783 /sonar-plugin-api/src/test/java/org/sonar/api/rules
parenteda9dff59cc60209b15b69ef4aa4c18885c0c744 (diff)
downloadsonarqube-9f7a5068bb26f2760332c6e0bacec424e2edd47a.tar.gz
sonarqube-9f7a5068bb26f2760332c6e0bacec424e2edd47a.zip
Improve code quality
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/rules')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/rules/RulePriorityTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/rules/RulePriorityTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/rules/RulePriorityTest.java
index 8d4e9451af6..602053cf8b4 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/rules/RulePriorityTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/rules/RulePriorityTest.java
@@ -28,12 +28,12 @@ public class RulePriorityTest {
@Test
public void testValueOfString() {
- assertThat(RulePriority.INFO).isEqualTo(RulePriority.valueOfString("info"));
- assertThat(RulePriority.MAJOR).isEqualTo(RulePriority.valueOfString("MAJOR"));
- assertThat(RulePriority.MAJOR).isEqualTo(RulePriority.valueOfString("ERROR"));
- assertThat(RulePriority.INFO).isEqualTo(RulePriority.valueOfString("WARNING"));
- assertThat(RulePriority.MAJOR).isEqualTo(RulePriority.valueOfString("ErRor"));
- assertThat(RulePriority.INFO).isEqualTo(RulePriority.valueOfString("WaRnInG"));
+ assertThat(RulePriority.valueOfString("info")).isEqualTo(RulePriority.INFO);
+ assertThat(RulePriority.valueOfString("MAJOR")).isEqualTo(RulePriority.MAJOR);
+ assertThat(RulePriority.valueOfString("ERROR")).isEqualTo(RulePriority.MAJOR);
+ assertThat(RulePriority.valueOfString("WARNING")).isEqualTo(RulePriority.INFO);
+ assertThat(RulePriority.valueOfString("ErRor")).isEqualTo(RulePriority.MAJOR);
+ assertThat(RulePriority.valueOfString("WaRnInG")).isEqualTo(RulePriority.INFO);
}
@Test(expected = IllegalArgumentException.class)