Updated for various code warnings
This commit addresses a number of deprications and other code warnings. There are still many more to address, but this is a start.
This commit is contained in:
@@ -126,7 +126,6 @@ public abstract class AbstractJobTests implements ApplicationContextAware {
|
||||
* Launch the entire job, including all steps.
|
||||
*
|
||||
* @return JobExecution, so that the test can validate the exit status
|
||||
* @throws Exception
|
||||
*/
|
||||
protected JobExecution launchJob() throws Exception {
|
||||
return this.launchJob(this.getUniqueJobParameters());
|
||||
@@ -135,9 +134,8 @@ public abstract class AbstractJobTests implements ApplicationContextAware {
|
||||
/**
|
||||
* Launch the entire job, including all steps
|
||||
*
|
||||
* @param jobParameters
|
||||
* @param jobParameters parameters for the job
|
||||
* @return JobExecution, so that the test can validate the exit status
|
||||
* @throws Exception
|
||||
*/
|
||||
protected JobExecution launchJob(JobParameters jobParameters) throws Exception {
|
||||
return getJobLauncher().run(this.job, jobParameters);
|
||||
|
||||
@@ -98,7 +98,7 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
Assert.notNull(dataSource);
|
||||
Assert.notNull(dataSource, "A DataSource is required");
|
||||
initialize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user