diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-11-18 09:08:40 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-18 20:03:33 +0000 |
commit | 9f7a5068bb26f2760332c6e0bacec424e2edd47a (patch) | |
tree | 51ff128c6f77d1d15db5abe7960a90c74ee3d783 /sonar-plugin-api/src/test/java/org/sonar/api/rules | |
parent | eda9dff59cc60209b15b69ef4aa4c18885c0c744 (diff) | |
download | sonarqube-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.java | 12 |
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) |