diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2023-03-15 10:39:13 +0100 |
---|---|---|
committer | Philippe Perrin <philippe.perrin@sonarsource.com> | 2023-03-17 10:08:02 +0100 |
commit | ffe809c197e25b98c8edd27491aeab694f98cc59 (patch) | |
tree | 0b5c5fac420487375d88feffd7d94669b413cc73 /server/sonar-ce | |
parent | 11d32ba258ab693045dc1706fd2c200b6b32a01f (diff) | |
download | sonarqube-ffe809c197e25b98c8edd27491aeab694f98cc59.tar.gz sonarqube-ffe809c197e25b98c8edd27491aeab694f98cc59.zip |
SONAR-18679 update UTs to ITs sonar-ce
Diffstat (limited to 'server/sonar-ce')
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplTest.java) | 3 | ||||
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java) | 2 | ||||
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplTest.java) | 2 | ||||
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java) | 2 | ||||
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java) | 2 | ||||
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/queue/NextPendingTaskPickerTest.java) | 2 | ||||
-rw-r--r-- | server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java (renamed from server/sonar-ce/src/test/java/org/sonar/ce/taskprocessor/CeWorkerImplTest.java) | 2 |
7 files changed, 7 insertions, 8 deletions
diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java index 468d94f0f2c..8aa991e6f11 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java @@ -42,9 +42,8 @@ import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; -public class AnalysisCacheCleaningSchedulerImplTest { +public class AnalysisCacheCleaningSchedulerImplIT { private System2 system2 = mock(System2.class); private final static UuidFactory uuidFactory = new SequenceUuidFactory(); @Rule diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java index 4da1608722b..8a57a3f413a 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java @@ -56,7 +56,7 @@ import static org.sonar.process.ProcessProperties.Property.PATH_DATA; import static org.sonar.process.ProcessProperties.Property.PATH_HOME; import static org.sonar.process.ProcessProperties.Property.PATH_TEMP; -public class ComputeEngineContainerImplTest { +public class ComputeEngineContainerImplIT { @Rule public TemporaryFolder tempFolder = new TemporaryFolder(); diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java index ae4db994a71..8f43bd9b081 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java @@ -34,7 +34,7 @@ import org.sonar.process.systeminfo.protobuf.ProtobufSystemInfo; import static org.assertj.core.api.Assertions.assertThat; -public class CeDatabaseMBeanImplTest { +public class CeDatabaseMBeanImplIT { @Rule public DbTester dbTester = DbTester.create(System2.INSTANCE); diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java index 9d2100f5bf7..97d228c73b7 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java @@ -60,7 +60,7 @@ import static org.mockito.Mockito.verifyNoInteractions; import static org.mockito.Mockito.when; import static org.sonar.db.component.ComponentTesting.newDirectory; -public class ReportAnalysisFailureNotificationExecutionListenerTest { +public class ReportAnalysisFailureNotificationExecutionListenerIT { @Rule public DbTester dbTester = DbTester.create(System2.INSTANCE); diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java index 4a537ed3120..fdf5b58d390 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java @@ -64,7 +64,7 @@ import static org.mockito.Mockito.when; import static org.sonar.ce.container.ComputeEngineStatus.Status.STARTED; import static org.sonar.ce.container.ComputeEngineStatus.Status.STOPPING; -public class InternalCeQueueImplTest { +public class InternalCeQueueImplIT { private static final String AN_ANALYSIS_UUID = "U1"; private static final String WORKER_UUID_1 = "worker uuid 1"; diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/queue/NextPendingTaskPickerTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java index 3fd745c8ea0..282ade6bb62 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/queue/NextPendingTaskPickerTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java @@ -46,7 +46,7 @@ import static org.sonar.db.ce.CeQueueDto.Status.PENDING; import static org.sonar.db.ce.CeTaskCharacteristicDto.BRANCH_KEY; import static org.sonar.db.ce.CeTaskCharacteristicDto.PULL_REQUEST; -public class NextPendingTaskPickerTest { +public class NextPendingTaskPickerIT { private final System2 alwaysIncreasingSystem2 = new AlwaysIncreasingSystem2(1L, 1); diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/taskprocessor/CeWorkerImplTest.java b/server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java index 9b55622906f..f0acbec6aa2 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/taskprocessor/CeWorkerImplTest.java +++ b/server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java @@ -75,7 +75,7 @@ import static org.sonar.ce.taskprocessor.CeWorker.Result.DISABLED; import static org.sonar.ce.taskprocessor.CeWorker.Result.NO_TASK; import static org.sonar.ce.taskprocessor.CeWorker.Result.TASK_PROCESSED; -public class CeWorkerImplTest { +public class CeWorkerImplIT { private System2 system2 = new TestSystem2().setNow(1_450_000_000_000L); |