Tweak the JobOperator slightly and add Javadocs.
This commit is contained in:
@@ -54,11 +54,11 @@ public class JobOperatorFunctionalTests {
|
||||
assertEquals(params, tested.getParameters(executionId));
|
||||
stopAndCheckStatus(executionId);
|
||||
|
||||
long resumedExecutionId = tested.resume(executionId);
|
||||
long resumedExecutionId = tested.restart(executionId);
|
||||
assertEquals(params, tested.getParameters(resumedExecutionId));
|
||||
stopAndCheckStatus(resumedExecutionId);
|
||||
|
||||
List<Long> instances = tested.getLastInstances(job.getName(), 1);
|
||||
List<Long> instances = tested.getJobInstances(job.getName(), 0, 1);
|
||||
assertEquals(1, instances.size());
|
||||
long instanceId = instances.get(0);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public class RemoteLauncherTests {
|
||||
Thread.sleep(SLEEP_INTERVAL);
|
||||
// assertEquals(0, launcher.getRunningExecutions("loopJob").size());
|
||||
logger.debug(launcher.getSummary(executionId));
|
||||
long resumedId = launcher.resume(executionId);
|
||||
long resumedId = launcher.restart(executionId);
|
||||
assertEquals("Picked up the same execution after pause and resume", executionId, resumedId);
|
||||
|
||||
Thread.sleep(SLEEP_INTERVAL);
|
||||
@@ -108,7 +108,7 @@ public class RemoteLauncherTests {
|
||||
|
||||
// assertEquals(0, launcher.getRunningExecutions("loopJob").size());
|
||||
logger.debug(launcher.getSummary(executionId));
|
||||
long resumeId2 = launcher.resume(executionId);
|
||||
long resumeId2 = launcher.restart(executionId);
|
||||
assertEquals("Picked up the same execution after pause and resume", executionId, resumeId2);
|
||||
|
||||
launcher.stop(executionId);
|
||||
|
||||
Reference in New Issue
Block a user