Updated tests to remove SQL Bad Grammar warnings
Also replacing the last of the SpringJunit4ClassRunner with SpringRunner Other cleanup resolves #482
This commit is contained in:
committed by
Michael Minella
parent
ab58cdd9df
commit
fa3e4e55c6
@@ -43,13 +43,6 @@ public class TaskBatchProperties {
|
||||
*/
|
||||
private int commandLineRunnerOrder = 0;
|
||||
|
||||
/**
|
||||
* Maximum wait time in milliseconds that Spring Cloud Task will wait for tasks to complete
|
||||
* when spring.cloud.task.batch.failOnJobFailure is set to true. Defaults
|
||||
* to 0. 0 indicates no wait time is enforced.
|
||||
*/
|
||||
private long failOnJobFailurewaitTime = 0;
|
||||
|
||||
/**
|
||||
* Fixed delay in milliseconds that Spring Cloud Task will wait when checking if
|
||||
* {@link org.springframework.batch.core.JobExecution}s have completed,
|
||||
@@ -74,14 +67,6 @@ public class TaskBatchProperties {
|
||||
this.commandLineRunnerOrder = commandLineRunnerOrder;
|
||||
}
|
||||
|
||||
public long getFailOnJobFailurewaitTime() {
|
||||
return failOnJobFailurewaitTime;
|
||||
}
|
||||
|
||||
public void setFailOnJobFailurewaitTime(long failOnJobFailurewaitTime) {
|
||||
this.failOnJobFailurewaitTime = failOnJobFailurewaitTime;
|
||||
}
|
||||
|
||||
public long getFailOnJobFailurePollInterval() {
|
||||
return failOnJobFailurePollInterval;
|
||||
}
|
||||
|
||||
@@ -183,12 +183,6 @@ public class TaskJobLauncherCommandLineRunner extends JobLauncherCommandLineRunn
|
||||
if (repeatStatus.equals(RepeatStatus.FINISHED) && failedJobExecutions.size() > 0) {
|
||||
throwJobFailedException(failedJobExecutions);
|
||||
}
|
||||
if (repeatStatus.isContinuable() && taskBatchProperties.getFailOnJobFailurewaitTime() != 0
|
||||
&& (new Date()).getTime() - startDate.getTime() > taskBatchProperties.getFailOnJobFailurewaitTime()) {
|
||||
throw new IllegalStateException("Not all jobs were completed " +
|
||||
"within the time specified by spring.cloud.task.batch." +
|
||||
"failOnJobFailurewaitTime.");
|
||||
}
|
||||
return repeatStatus;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user