|
|
@ -15,6 +15,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
package org.thingsboard.server.service.job; |
|
|
package org.thingsboard.server.service.job; |
|
|
|
|
|
|
|
|
|
|
|
import lombok.SneakyThrows; |
|
|
import org.junit.After; |
|
|
import org.junit.After; |
|
|
import org.junit.Before; |
|
|
import org.junit.Before; |
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
|
@ -454,6 +455,7 @@ public class JobManagerTest extends AbstractControllerTest { |
|
|
return submitJob(configuration, "test-job"); |
|
|
return submitJob(configuration, "test-job"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@SneakyThrows |
|
|
private Job submitJob(DummyJobConfiguration configuration, String key) { |
|
|
private Job submitJob(DummyJobConfiguration configuration, String key) { |
|
|
return jobManager.submitJob(Job.builder() |
|
|
return jobManager.submitJob(Job.builder() |
|
|
.tenantId(tenantId) |
|
|
.tenantId(tenantId) |
|
|
@ -461,7 +463,7 @@ public class JobManagerTest extends AbstractControllerTest { |
|
|
.key(key) |
|
|
.key(key) |
|
|
.entityId(jobEntity.getId()) |
|
|
.entityId(jobEntity.getId()) |
|
|
.configuration(configuration) |
|
|
.configuration(configuration) |
|
|
.build()); |
|
|
.build()).get(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private List<DummyTaskFailure> getFailures(JobResult jobResult) { |
|
|
private List<DummyTaskFailure> getFailures(JobResult jobResult) { |
|
|
|