Hi all,
section 10.2 of the reference documentation provides an example for doing end-to-end tests using "JobLauncherTestUtils". The test consists of some data setup and then the job is launched. I've had some problems trying to run this with the @Transactional annotation, as ideally I'd like to rollback the data setup. In the meantime I've come across some threads which mention that a batch job cannot be run within a transaction. Is there a way to launch a job within a Transactional test?
Thanks.


Reply With Quote
