From 215d47182e66faa7675586d82acae721cb186c02 Mon Sep 17 00:00:00 2001 From: jpraet Date: Wed, 20 Mar 2013 20:34:21 +0100 Subject: [PATCH] fix assertion (see BATCH-1957: WRITTEN_STATISTICS_NAME in execution context now contains TOTAL number of records written) --- .../batch/item/file/FlatFileItemWriterTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/FlatFileItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/FlatFileItemWriterTests.java index 7d23c926e..20451b479 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/FlatFileItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/FlatFileItemWriterTests.java @@ -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