diff --git a/samples/.springBeans b/samples/.springBeans index ff256dfe9..26f628097 100644 --- a/samples/.springBeans +++ b/samples/.springBeans @@ -12,7 +12,6 @@ src/main/resources/jobs/multilineOrderOutputDescriptors.xml src/main/resources/jobs/tradeJob.xml src/main/resources/jobs/tradeJobIo.xml - src/main/resources/jobs/xmlJob.xml src/main/resources/jobs/restartSample.xml src/main/resources/data-source-context.xml src/main/resources/simple-container-definition.xml @@ -21,6 +20,7 @@ src/main/resources/jobs/infiniteLoopJob.xml src/main/resources/data-source-context-init.xml src/main/resources/jobs/nfljob.xml + src/main/resources/jobs/xmlStaxJob.xml @@ -101,17 +101,6 @@ src/main/resources/simple-container-definition.xml - - - true - false - - src/main/resources/data-source-context.xml - src/main/resources/data-source-context-init.xml - src/main/resources/jobs/xmlJob.xml - src/main/resources/simple-container-definition.xml - - true @@ -146,5 +135,16 @@ src/main/resources/simple-container-definition.xml + + + true + false + + src/main/resources/data-source-context.xml + src/main/resources/data-source-context-init.xml + src/main/resources/simple-container-definition.xml + src/main/resources/jobs/xmlStaxJob.xml + + diff --git a/samples/src/main/resources/data/xmlJob/input/20070122.testStream.xmlFileStep.xml b/samples/src/main/resources/data/xmlJob/input/20070122.testStream.xmlFileStep.xml deleted file mode 100644 index 73ec2ad43..000000000 --- a/samples/src/main/resources/data/xmlJob/input/20070122.testStream.xmlFileStep.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - Gladys Kravitz -
Anytown, PA
- 34 - 0 - 0 -
- 2003-01-07 14:16:00 GMT - - - Burnham's Celestial Handbook, Vol 1 - 5 - 21.79 - 2 - - - Burnham's Celestial Handbook, Vol 2 - 5 - 19.89 - 2 - - - - ZipShip - 0.74 - -
- - - John Smith -
Chicago, IL
- 46 - 0 - 0 -
- 2003-01-07 14:16:02 GMT - - - XmlBeans in Action - 3 - 41.29 - 1 - - - JSR-173 - 1 - 11.99 - 5 - - - Teach Yourself XML in 21 days - 1 - 35.49 - 1 - - - - ZipShip - 0.74 - -
- - - Peter Newman -
Cleveland, OH
- 23 - 0 - 0 -
- 2003-01-07 14:16:35 GMT - - - Java 6 - 2 - 12.79 - 3 - - - - UPS - 0.69 - -
-
diff --git a/samples/src/main/resources/data/xmlJob/input/purchaseorders.xsd b/samples/src/main/resources/data/xmlJob/input/purchaseorders.xsd deleted file mode 100644 index 1536a9859..000000000 --- a/samples/src/main/resources/data/xmlJob/input/purchaseorders.xsd +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/src/main/resources/data/xmlJob/output/20070122.testStream.xmlFileStep.xml b/samples/src/main/resources/data/xmlJob/output/20070122.testStream.xmlFileStep.xml deleted file mode 100644 index 13e91dde8..000000000 --- a/samples/src/main/resources/data/xmlJob/output/20070122.testStream.xmlFileStep.xml +++ /dev/null @@ -1 +0,0 @@ -Gladys Kravitz
Anytown, PA
3400
2003-01-07 14:16:00.0 GMTBurnham's Celestial Handbook, Vol 15.021.792Burnham's Celestial Handbook, Vol 25.019.892
John Smith
Chicago, IL
4600
2003-01-07 14:16:02.0 GMTXmlBeans in Action3.041.291JSR-1731.011.995Teach Yourself XML in 21 days1.035.491
Peter Newman
Cleveland, OH
2300
2003-01-07 14:16:35.0 GMTJava 62.012.793
\ No newline at end of file diff --git a/samples/src/main/resources/jobs/xmlJob.xml b/samples/src/main/resources/jobs/xmlJob.xml deleted file mode 100644 index 5c7940833..000000000 --- a/samples/src/main/resources/jobs/xmlJob.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/src/test/java/org/springframework/batch/sample/XmlJobFunctionalTests.java b/samples/src/test/java/org/springframework/batch/sample/XmlJobFunctionalTests.java deleted file mode 100644 index 9a51f9a77..000000000 --- a/samples/src/test/java/org/springframework/batch/sample/XmlJobFunctionalTests.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2006-2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.batch.sample; - -import org.apache.commons.io.IOUtils; -import org.springframework.core.io.ClassPathResource; -import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; - -public class XmlJobFunctionalTests extends AbstractLifecycleSpringContextTests { - //private static final Log log = LogFactory.getLog(XmlJobFunctionalTests.class); - - private Resource fileInputLocator = new ClassPathResource("data/xmlJob/output/20070122.testStream.xmlFileStep.xml"); - private Resource fileOutputLocator = new FileSystemResource("20070122.testStream.xmlFileStep.xml"); - -// @Override - protected String[] getConfigLocations() { - return new String[]{"jobs/xmlJob.xml"}; - } - - /** - * Output should be the same as input - */ - protected void validatePostConditions() throws Exception { - //TODO String comparison is inadequate, compare DOMs instead - - String input = IOUtils.toString(fileInputLocator.getInputStream()); - String output = IOUtils.toString(fileOutputLocator.getInputStream()); - - //assertEquals(input, output); - assertTrue(input.length() > 0); - assertTrue(output.length() > 0); - } - -}