diff --git a/modules/core/core-scheduler/src/test/java/org/eclipse/dirigible/core/scheduler/test/JobCoreServiceTest.java b/modules/core/core-scheduler/src/test/java/org/eclipse/dirigible/core/scheduler/test/JobCoreServiceTest.java index bfca0816213..4aaeec45fc0 100644 --- a/modules/core/core-scheduler/src/test/java/org/eclipse/dirigible/core/scheduler/test/JobCoreServiceTest.java +++ b/modules/core/core-scheduler/src/test/java/org/eclipse/dirigible/core/scheduler/test/JobCoreServiceTest.java @@ -51,15 +51,14 @@ public void setUp() throws Exception { */ @Test public void createJob() throws SchedulerException { - jobCoreService.removeJob("test_job1"); - jobCoreService.createJob("test_job1", "test_group", "org....", "handler.js", "engine type", "Test", "expr...", false); - List list = jobCoreService.getJobs(); - assertEquals(1, list.size()); - JobDefinition jobDefinition = list.get(0); - System.out.println(jobDefinition.toString()); - assertEquals("test_job1", jobDefinition.getName()); + String jobName = "test_job1"; + jobCoreService.removeJob(jobName); + jobCoreService.createJob(jobName, "test_group", "org....", "handler.js", "engine type", "Test", "expr...", false); + JobDefinition jobDefinition = jobCoreService.getJob(jobName); + + assertEquals(jobName, jobDefinition.getName()); assertEquals("Test", jobDefinition.getDescription()); - jobCoreService.removeJob("test_job1"); + jobCoreService.removeJob(jobName); } /**