Date manipulation in Spring Batch
Spring Batch handles job meta data in database tables such as
batch_step_execution that contains info when an execution was started or finished. The date is always populated with the current date, e.g. in AbstractStep:256 the end date is set as
For testing purposes I'd like to use a
java.time.Clock that has a fixed date for the start time in tests. Is there a sane approach to this problem?