aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-10-26 09:33:00 +0200
committersonartech <sonartech@sonarsource.com>2021-10-26 20:03:36 +0000
commit5c3a973802191bec47083ae0b3ca27f4818a4fae (patch)
treefb22e6b191af02c9bdb58df8df34d4efc04fa3a5 /sonar-plugin-api/src
parentd609879b84b61b8aa9c9c7c4bf95c10a07288823 (diff)
downloadsonarqube-5c3a973802191bec47083ae0b3ca27f4818a4fae.tar.gz
sonarqube-5c3a973802191bec47083ae0b3ca27f4818a4fae.zip
[NO-JIRA] Fix Quality Gate
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/utils/DurationTest.java12
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());
}