spring-batch
spring-batch copied to clipboard
Modify AssertFile class to work properly with classpath (ex: in jar file) based resources [BATCH-1910]
Jeff Evans opened BATCH-1910 and commented
The AssertFile class does not work when one or more of the resources is in the jar file (and referenced via the classpath URI prefix). That's because the current implementation uses the .getFile() method on the resource, which can fail if the file is actually in the jar and not on the filesystem. In cases where we want to include the "expected" result file in the jar, it would be desirable for the reference to the resource to work.
Affects: 2.1.9