From 5518ef32596b25ab6c285728fa7db63d8aefab1e Mon Sep 17 00:00:00 2001 From: Jonathan Gamba Date: Wed, 23 Oct 2024 13:27:09 -0600 Subject: [PATCH] #29498 Sonarlint feedback. --- .../rest/api/v1/job/JobQueueHelperIntegrationTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotcms-integration/src/test/java/com/dotcms/rest/api/v1/job/JobQueueHelperIntegrationTest.java b/dotcms-integration/src/test/java/com/dotcms/rest/api/v1/job/JobQueueHelperIntegrationTest.java index b581dd5ee33..69ac6f7fae9 100644 --- a/dotcms-integration/src/test/java/com/dotcms/rest/api/v1/job/JobQueueHelperIntegrationTest.java +++ b/dotcms-integration/src/test/java/com/dotcms/rest/api/v1/job/JobQueueHelperIntegrationTest.java @@ -37,9 +37,14 @@ public class JobQueueHelperIntegrationTest extends TestBaseJunit5WeldInitiator { @Test void testEmptyParams(){ + + final var jobParams = new JobParams(); + final var user = mock(User.class); + final var request = mock(HttpServletRequest.class); + assertThrows(IllegalArgumentException.class, () -> { jobQueueHelper.createJob( - "any", new JobParams(), mock(User.class), mock(HttpServletRequest.class) + "any", jobParams, user, request ); }); }