fix assertion (see BATCH-1957: WRITTEN_STATISTICS_NAME in execution
context now contains TOTAL number of records written)
This commit is contained in:
@@ -516,8 +516,8 @@ public class FlatFileItemWriterTests {
|
||||
|
||||
assertEquals("footer", readLine(encoding));
|
||||
|
||||
// 3 lines were written to the file after restart
|
||||
assertEquals(3, executionContext.getLong(ClassUtils.getShortName(FlatFileItemWriter.class) + ".written"));
|
||||
// 8 lines were written to the file in total
|
||||
assertEquals(8, executionContext.getLong(ClassUtils.getShortName(FlatFileItemWriter.class) + ".written"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user