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:
robokaso
2008-03-13 13:21:03 +00:00
parent d7e08ae574
commit cc39916c19
2 changed files with 7 additions and 0 deletions

View File

@@ -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>"));
}