I got a JobExecutionListener
as follows:
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
}
}
I want to write a test for my JobListener and i am wondering myself if i need to mock the JobExecution. Do you think that will be ok, or is there another nice solution to this?