From: Pierre Date: Thu, 29 Jul 2021 07:40:32 +0000 (+0200) Subject: remove dead code X-Git-Tag: 9.1.0.47736~185 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=64dce7ca120cfeadc95a6a10b2770c1989355306;p=sonarqube.git remove dead code --- diff --git a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ValidateProjectStepTest.java b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ValidateProjectStepTest.java index 781e3fed82b..8d62b2fecb4 100644 --- a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ValidateProjectStepTest.java +++ b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ValidateProjectStepTest.java @@ -26,7 +26,6 @@ import org.junit.Test; import org.sonar.api.utils.DateUtils; import org.sonar.api.utils.MessageException; import org.sonar.api.utils.System2; -import org.sonar.ce.task.log.CeTaskMessages; import org.sonar.ce.task.projectanalysis.analysis.AnalysisMetadataHolderRule; import org.sonar.ce.task.projectanalysis.analysis.Branch; import org.sonar.ce.task.projectanalysis.component.Component; @@ -43,7 +42,6 @@ import org.sonar.db.component.SnapshotTesting; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.verifyNoInteractions; import static org.mockito.Mockito.when; public class ValidateProjectStepTest { @@ -62,7 +60,6 @@ public class ValidateProjectStepTest { .setAnalysisDate(new Date(DEFAULT_ANALYSIS_TIME)) .setBranch(DEFAULT_BRANCH); - private final CeTaskMessages taskMessages = mock(CeTaskMessages.class); private final DbClient dbClient = db.getDbClient(); private final ValidateProjectStep underTest = new ValidateProjectStep(dbClient, treeRootHolder, analysisMetadataHolder); @@ -79,7 +76,6 @@ public class ValidateProjectStepTest { .build()); underTest.execute(new TestComputationStepContext()); - verifyNoInteractions(taskMessages); } @Test