From f6131a0f408ec6e855cf03f4dbc61a0f7fc43964 Mon Sep 17 00:00:00 2001 From: dsyer Date: Tue, 30 Dec 2008 17:42:48 +0000 Subject: [PATCH] BATCH-941: Applied patch --- spring-batch-samples/.springBeans | 3 - .../src/main/resources/jobs/skipSampleJob.xml | 245 ++++++++++-------- .../src/main/resources/jobs/tradeJob.xml | 147 ++++++----- .../src/main/resources/jobs/tradeJobIo.xml | 76 ------ .../batch/sample/TradeJobFunctionalTests.java | 5 - 5 files changed, 219 insertions(+), 257 deletions(-) delete mode 100644 spring-batch-samples/src/main/resources/jobs/tradeJobIo.xml diff --git a/spring-batch-samples/.springBeans b/spring-batch-samples/.springBeans index e9febe203..dae6e44e7 100644 --- a/spring-batch-samples/.springBeans +++ b/spring-batch-samples/.springBeans @@ -11,7 +11,6 @@ src/main/resources/jobs/multilineOrderIo.xml src/main/resources/jobs/multilineOrderJob.xml src/main/resources/jobs/tradeJob.xml - src/main/resources/jobs/tradeJobIo.xml src/main/resources/jobs/restartSample.xml src/main/resources/data-source-context.xml src/main/resources/jobs/beanWrapperMapperSampleJob.xml @@ -179,7 +178,6 @@ src/main/resources/data-source-context.xml src/main/resources/data-source-context-init.xml src/main/resources/jobs/tradeJob.xml - src/main/resources/jobs/tradeJobIo.xml src/main/resources/simple-job-launcher-context.xml src/main/resources/org/springframework/batch/sample/config/common-context.xml @@ -374,7 +372,6 @@ src/main/resources/jobs/skipSampleJob.xml src/main/resources/org/springframework/batch/sample/config/common-context.xml src/main/resources/data-source-context-init.xml - src/main/resources/jobs/tradeJobIo.xml src/main/resources/skipSample-job-launcher-context.xml diff --git a/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml b/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml index cc59b2920..8398c3f3e 100644 --- a/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml +++ b/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml @@ -1,116 +1,131 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.springframework.batch.item.validator.ValidationException - java.lang.RuntimeException - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.springframework.batch.item.validator.ValidationException + java.lang.RuntimeException + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spring-batch-samples/src/main/resources/jobs/tradeJob.xml b/spring-batch-samples/src/main/resources/jobs/tradeJob.xml index 3c7b73821..09f2e7ce3 100644 --- a/spring-batch-samples/src/main/resources/jobs/tradeJob.xml +++ b/spring-batch-samples/src/main/resources/jobs/tradeJob.xml @@ -1,87 +1,118 @@ - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - - + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spring-batch-samples/src/main/resources/jobs/tradeJobIo.xml b/spring-batch-samples/src/main/resources/jobs/tradeJobIo.xml deleted file mode 100644 index 4e2018180..000000000 --- a/spring-batch-samples/src/main/resources/jobs/tradeJobIo.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/TradeJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/TradeJobFunctionalTests.java index 44087a933..b3e6b833c 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/TradeJobFunctionalTests.java +++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/TradeJobFunctionalTests.java @@ -36,7 +36,6 @@ import org.junit.runner.RunWith; import org.springframework.batch.sample.domain.trade.Trade; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; import org.springframework.jdbc.core.RowCallbackHandler; import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; import org.springframework.test.context.ContextConfiguration; @@ -126,13 +125,9 @@ public class TradeJobFunctionalTests extends AbstractValidatingBatchLauncherTest assertEquals(customers.size(), activeRow); // check content of the output file - -// Clean up - ((FileSystemResource)applicationContext.getBean("customerFileLocator")).getFile().delete(); } protected void validatePreConditions() { - assertTrue(((Resource)applicationContext.getBean("fileLocator")).exists()); } private static class Customer {