diff options
author | Jacek <52388493+jacek-poreda-sonarsource@users.noreply.github.com> | 2019-10-15 12:05:53 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-10-15 20:21:05 +0200 |
commit | b83cfa7f76f6732058ea0bb2dc54a824c9df6781 (patch) | |
tree | 3f11619a8e8d53fbaa818fbe8ae73ede95e51734 /sonar-plugin-api-impl | |
parent | 6698dceab8f4531a709c3eb9232977ed18d583c3 (diff) | |
download | sonarqube-b83cfa7f76f6732058ea0bb2dc54a824c9df6781.tar.gz sonarqube-b83cfa7f76f6732058ea0bb2dc54a824c9df6781.zip |
Fix some code smell debt (#2143)
Diffstat (limited to 'sonar-plugin-api-impl')
-rw-r--r-- | sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/TestSystem2Test.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/TestSystem2Test.java b/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/TestSystem2Test.java index bedcbc6f4a3..622a749f8b1 100644 --- a/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/TestSystem2Test.java +++ b/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/TestSystem2Test.java @@ -20,12 +20,13 @@ package org.sonar.api.impl.utils; import java.util.TimeZone; -import org.junit.Assert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; +import static org.assertj.core.api.Assertions.assertThat; + public class TestSystem2Test { @@ -43,21 +44,20 @@ public class TestSystem2Test { public void test_tick() { underTest.setNow(1000L); underTest.tick(); - Assert.assertEquals(underTest.now(), 1001L); + assertThat(underTest.now()).isEqualTo(1001L); } @Test public void test_now() { underTest.setNow(1000L); - Assert.assertEquals(underTest.now(), 1000L); + assertThat(underTest.now()).isEqualTo(1000L); } @Test public void test_default_time_zone() { underTest.setDefaultTimeZone(TimeZone.getDefault()); TimeZone result = underTest.getDefaultTimeZone(); - Assert.assertNotNull(result); - Assert.assertEquals(result.getID(), TimeZone.getDefault().getID()); + assertThat(result.getID()).isEqualTo(TimeZone.getDefault().getID()); } @Test |