From 20445128ff66e35cfc64ab8271db51038699fb66 Mon Sep 17 00:00:00 2001 From: robokaso Date: Fri, 29 Feb 2008 13:11:20 +0000 Subject: [PATCH] removed unnecessary explicit closing of applicationContext (having strange implications on DB cleanup) --- .../batch/sample/XmlStaxJobFunctionalTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/XmlStaxJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/XmlStaxJobFunctionalTests.java index 3be3150b3..9806453fd 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/XmlStaxJobFunctionalTests.java +++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/XmlStaxJobFunctionalTests.java @@ -36,8 +36,7 @@ public class XmlStaxJobFunctionalTests extends AbstractValidatingBatchLauncherTe * Output should be the same as input */ protected void validatePostConditions() throws Exception { - applicationContext.close(); //make sure the output file is closed - + XMLUnit.setIgnoreWhitespace(true); XMLAssert.assertXMLEqual(new FileReader(EXPECTED_OUTPUT_FILE), new FileReader(OUTPUT_FILE)); }