0
我得到了JobExecutionListener
如下:SpringBatch:測試一個JobExecutionListener
public class JobListener implements JobExecutionListener {
@Override
public void beforeJob(final JobExecution jobExecution) {
// do some work with the jobExecution
}
@Override
public void afterJob(final JobExecution jobExecution) {
// do some work with the jobExecution
}
}
我想編寫一個測試我JobListener我想知道自己,如果我需要模擬JobExecution。你認爲那樣會好嗎,還是有另一個很好的解決方案呢?