RESOLVED - BATCH-1141: Rename CompositeExecutionJobListener to CompositeJobExecutionListener
This commit is contained in:
@@ -28,7 +28,7 @@ import org.springframework.aop.framework.Advised;
|
||||
import org.springframework.batch.core.Job;
|
||||
import org.springframework.batch.core.JobExecutionListener;
|
||||
import org.springframework.batch.core.job.AbstractJob;
|
||||
import org.springframework.batch.core.listener.CompositeExecutionJobListener;
|
||||
import org.springframework.batch.core.listener.CompositeJobExecutionListener;
|
||||
import org.springframework.batch.core.listener.JobExecutionListenerSupport;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
@@ -83,7 +83,7 @@ public class JobParserTests {
|
||||
listenerField.setAccessible(true);
|
||||
Object compositeListener = listenerField.get(job);
|
||||
|
||||
Field compositeField = CompositeExecutionJobListener.class.getDeclaredField("listeners");
|
||||
Field compositeField = CompositeJobExecutionListener.class.getDeclaredField("listeners");
|
||||
compositeField.setAccessible(true);
|
||||
Object composite = compositeField.get(compositeListener);
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ import org.springframework.batch.core.JobInstance;
|
||||
*/
|
||||
public class CompositeJobExecutionListenerTests extends TestCase {
|
||||
|
||||
private CompositeExecutionJobListener listener = new CompositeExecutionJobListener();
|
||||
private CompositeJobExecutionListener listener = new CompositeJobExecutionListener();
|
||||
|
||||
private List<String> list = new ArrayList<String>();
|
||||
|
||||
/**
|
||||
* Test method for
|
||||
* {@link org.springframework.batch.core.listener.CompositeExecutionJobListener#setListeners(List)}
|
||||
* {@link org.springframework.batch.core.listener.CompositeJobExecutionListener#setListeners(List)}
|
||||
*/
|
||||
public void testSetListeners() {
|
||||
listener.setListeners(Arrays.asList(new JobExecutionListenerSupport() {
|
||||
@@ -54,7 +54,7 @@ public class CompositeJobExecutionListenerTests extends TestCase {
|
||||
|
||||
/**
|
||||
* Test method for
|
||||
* {@link org.springframework.batch.core.listener.CompositeExecutionJobListener#register(org.springframework.batch.core.JobExecutionListener)}
|
||||
* {@link org.springframework.batch.core.listener.CompositeJobExecutionListener#register(org.springframework.batch.core.JobExecutionListener)}
|
||||
* .
|
||||
*/
|
||||
public void testSetListener() {
|
||||
@@ -69,7 +69,7 @@ public class CompositeJobExecutionListenerTests extends TestCase {
|
||||
|
||||
/**
|
||||
* Test method for
|
||||
* {@link org.springframework.batch.core.listener.CompositeExecutionJobListener#beforeJob(JobExecution)}
|
||||
* {@link org.springframework.batch.core.listener.CompositeJobExecutionListener#beforeJob(JobExecution)}
|
||||
* .
|
||||
*/
|
||||
public void testOpen() {
|
||||
|
||||
Reference in New Issue
Block a user