RESOLVED - issue BATCH-448: StaxEventItemWriter creates invalid xml for zero row documents
http://jira.springframework.org/browse/BATCH-448 added empty character event before writing the end tag manually
This commit is contained in:
@@ -163,6 +163,7 @@ public class StaxEventItemWriterTests extends TestCase {
|
||||
assertTrue(outputFileContent().indexOf("<testroot attribute=\"value\"") != NOT_FOUND);
|
||||
|
||||
writer.close(null);
|
||||
assertTrue(outputFileContent().indexOf("<testroot attribute=\"value\">") != NOT_FOUND);
|
||||
assertTrue(outputFileContent().endsWith("</testroot>"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user