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 b581dd5ee331..69ac6f7fae90 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 ); }); }