diff options
author | Michal Duda <michal.duda@sonarsource.com> | 2020-12-11 18:52:10 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-12-22 20:09:36 +0000 |
commit | 31544958c5b3763fdacfa7e7e8afec68fb0e0987 (patch) | |
tree | aa261de6044bf70b8289ad89da9cc1421b223a1d /server/sonar-ce | |
parent | bb0b4b79e4a6142ff259b038c2534f8420976e88 (diff) | |
download | sonarqube-31544958c5b3763fdacfa7e7e8afec68fb0e0987.tar.gz sonarqube-31544958c5b3763fdacfa7e7e8afec68fb0e0987.zip |
SONAR-13999 remove orgs from permission WS
Diffstat (limited to 'server/sonar-ce')
-rw-r--r-- | server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java index 961d03238c0..8e02119265d 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerTest.java @@ -69,17 +69,17 @@ public class ReportAnalysisFailureNotificationExecutionListenerTest { public ExpectedException expectedException = ExpectedException.none(); private final Random random = new Random(); - private DbClient dbClient = dbTester.getDbClient(); - private NotificationService notificationService = mock(NotificationService.class); - private ReportAnalysisFailureNotificationSerializer serializer = mock(ReportAnalysisFailureNotificationSerializer.class); - private System2 system2 = mock(System2.class); - private DbClient dbClientMock = mock(DbClient.class); - private CeTask ceTaskMock = mock(CeTask.class); - private Throwable throwableMock = mock(Throwable.class); - private CeTaskResult ceTaskResultMock = mock(CeTaskResult.class); - private ReportAnalysisFailureNotificationExecutionListener fullMockedUnderTest = new ReportAnalysisFailureNotificationExecutionListener( + private final DbClient dbClient = dbTester.getDbClient(); + private final NotificationService notificationService = mock(NotificationService.class); + private final ReportAnalysisFailureNotificationSerializer serializer = mock(ReportAnalysisFailureNotificationSerializer.class); + private final System2 system2 = mock(System2.class); + private final DbClient dbClientMock = mock(DbClient.class); + private final CeTask ceTaskMock = mock(CeTask.class); + private final Throwable throwableMock = mock(Throwable.class); + private final CeTaskResult ceTaskResultMock = mock(CeTaskResult.class); + private final ReportAnalysisFailureNotificationExecutionListener fullMockedUnderTest = new ReportAnalysisFailureNotificationExecutionListener( notificationService, dbClientMock, serializer, system2); - private ReportAnalysisFailureNotificationExecutionListener underTest = new ReportAnalysisFailureNotificationExecutionListener( + private final ReportAnalysisFailureNotificationExecutionListener underTest = new ReportAnalysisFailureNotificationExecutionListener( notificationService, dbClient, serializer, system2); @Before @@ -311,8 +311,8 @@ public class ReportAnalysisFailureNotificationExecutionListenerTest { .setTaskType(CeTaskTypes.REPORT) .setComponentUuid(project.uuid()) .setCreatedAt(createdAt)) - .setExecutedAt(executedAt) - .setStatus(CeActivityDto.Status.FAILED)); + .setExecutedAt(executedAt) + .setStatus(CeActivityDto.Status.FAILED)); dbTester.getSession().commit(); } |