]> source.dussan.org Git - sonarqube.git/commitdiff
remove dead code
authorPierre <pierre.guillot@sonarsource.com>
Thu, 29 Jul 2021 07:40:32 +0000 (09:40 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 29 Jul 2021 20:04:50 +0000 (20:04 +0000)
server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ValidateProjectStepTest.java

index 781e3fed82b32756bedb8038d3959cd02af36c42..8d62b2fecb405ccb1b60bd1436b1a55ed2cd4ec2 100644 (file)
@@ -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