diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-06-30 12:46:41 -0400 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-01 20:03:19 +0000 |
commit | 6269675771aff4cbe8f1e6fad52c7b9b322ec9ce (patch) | |
tree | 6e3f5332f76f8ffee0badea9a31fed36e62ccb3f /sonar-plugin-api/src/test | |
parent | 508bb14dd056120e20f10001b420345fe3a63d7d (diff) | |
download | sonarqube-6269675771aff4cbe8f1e6fad52c7b9b322ec9ce.tar.gz sonarqube-6269675771aff4cbe8f1e6fad52c7b9b322ec9ce.zip |
SONAR-14833 Order of fields in SMTP settings is not ideal
Diffstat (limited to 'sonar-plugin-api/src/test')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java index 6b49486e1f6..5aed83ef381 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java @@ -58,4 +58,11 @@ public class EmailSettingsTest { public void return_definitions() { assertThat(EmailSettings.definitions()).hasSize(8); } + + @Test + public void definitions_should_have_index() { + assertThat(EmailSettings.definitions()) + .extracting(PropertyDefinition::index) + .isNotEqualTo(999); + } } |