From ffcea568c79640227b2fd9c562f642b9d087ea10 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 11 Dec 2020 17:20:41 +0100 Subject: fix code smells --- .../org/sonar/ce/task/container/TaskContainerImplTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/sonar-ce-task') diff --git a/server/sonar-ce-task/src/test/java/org/sonar/ce/task/container/TaskContainerImplTest.java b/server/sonar-ce-task/src/test/java/org/sonar/ce/task/container/TaskContainerImplTest.java index ba995942112..1a22d2e5b79 100644 --- a/server/sonar-ce-task/src/test/java/org/sonar/ce/task/container/TaskContainerImplTest.java +++ b/server/sonar-ce-task/src/test/java/org/sonar/ce/task/container/TaskContainerImplTest.java @@ -67,10 +67,10 @@ public class TaskContainerImplTest { }); ceContainer.bootup(); - assertThat(defaultStartable.startCalls).isEqualTo(0); - assertThat(defaultStartable.stopCalls).isEqualTo(0); + assertThat(defaultStartable.startCalls).isZero(); + assertThat(defaultStartable.stopCalls).isZero(); assertThat(eagerStartable.startCalls).isEqualTo(1); - assertThat(eagerStartable.stopCalls).isEqualTo(0); + assertThat(eagerStartable.stopCalls).isZero(); } @Test @@ -85,8 +85,8 @@ public class TaskContainerImplTest { ceContainer.close(); - assertThat(defaultStartable.startCalls).isEqualTo(0); - assertThat(defaultStartable.stopCalls).isEqualTo(0); + assertThat(defaultStartable.startCalls).isZero(); + assertThat(defaultStartable.stopCalls).isZero(); assertThat(eagerStartable.startCalls).isEqualTo(1); assertThat(eagerStartable.stopCalls).isEqualTo(1); } -- cgit v1.2.3