diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-10-26 09:33:00 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-10-26 20:03:36 +0000 |
commit | 5c3a973802191bec47083ae0b3ca27f4818a4fae (patch) | |
tree | fb22e6b191af02c9bdb58df8df34d4efc04fa3a5 /sonar-plugin-api/src/test | |
parent | d609879b84b61b8aa9c9c7c4bf95c10a07288823 (diff) | |
download | sonarqube-5c3a973802191bec47083ae0b3ca27f4818a4fae.tar.gz sonarqube-5c3a973802191bec47083ae0b3ca27f4818a4fae.zip |
[NO-JIRA] Fix Quality Gate
Diffstat (limited to 'sonar-plugin-api/src/test')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/utils/DurationTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/DurationTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/DurationTest.java index 13a3ed405b5..28b86d006f7 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/DurationTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/DurationTest.java @@ -129,12 +129,12 @@ public class DurationTest { Duration durationWithSameValue = Duration.create(ONE_DAY_IN_MINUTES + ONE_HOUR_IN_MINUTES + ONE_MINUTE); Duration durationWithDifferentValue = Duration.create(ONE_DAY_IN_MINUTES + ONE_HOUR_IN_MINUTES); - assertThat(duration).isEqualTo(duration); - assertThat(durationWithSameValue).isEqualTo(duration); - assertThat(durationWithDifferentValue).isNotEqualTo(duration); - assertThat(duration).isNotEqualTo(null); - - assertThat(duration).hasSameHashCodeAs(duration); + assertThat(duration) + .isEqualTo(duration) + .isEqualTo(durationWithSameValue) + .isNotEqualTo(durationWithDifferentValue) + .isNotEqualTo(null) + .hasSameHashCodeAs(duration); assertThat(durationWithSameValue).hasSameHashCodeAs(duration); assertThat(durationWithDifferentValue.hashCode()).isNotEqualTo(duration.hashCode()); } |