Tweak the JobOperator slightly and add Javadocs.

This commit is contained in:
dsyer
2008-12-31 16:23:11 +00:00
parent d8c3020176
commit bd3ab51c60
11 changed files with 230 additions and 43 deletions

View File

@@ -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);

View File

@@ -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);