comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCaseBase.java @ 466:147d1e46b239

Set NameSpaceAware to true to get the Unittests work again. gnv-artifacts/trunk@527 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 11 Jan 2010 15:26:24 +0000
parents c16c622ba2f3
children 4939236c2dc9
comparison
equal deleted inserted replaced
465:f7038820df2e 466:147d1e46b239
86 protected Document readDocument(String fileName) { 86 protected Document readDocument(String fileName) {
87 Document returnValue = null; 87 Document returnValue = null;
88 try { 88 try {
89 DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory 89 DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory
90 .newInstance(); 90 .newInstance();
91 docBuilderFactory.setNamespaceAware(true);
91 DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); 92 DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
92 returnValue = docBuilder.parse(new File(fileName)); 93 returnValue = docBuilder.parse(new File(fileName));
93 } catch (ParserConfigurationException e) { 94 } catch (ParserConfigurationException e) {
94 log.error(e, e); 95 log.error(e, e);
95 } catch (SAXException e) { 96 } catch (SAXException e) {
128 */ 129 */
129 protected void doNextStep(Artifact artifact, CallContext cc, 130 protected void doNextStep(Artifact artifact, CallContext cc,
130 String feedDocument, String advanceDocument, Document describeDocument) 131 String feedDocument, String advanceDocument, Document describeDocument)
131 throws Exception { 132 throws Exception {
132 Document outputData = artifact.describe(describeDocument,cc); 133 Document outputData = artifact.describe(describeDocument,cc);
133 // this.writeDocument2Log(outputData); 134 // this.writeDocument2Log(outputData);
134 outputData = artifact.feed(this.readDocument(feedDocument), cc); 135 outputData = artifact.feed(this.readDocument(feedDocument), cc);
135 this.check4ExceptionReport(outputData); 136 this.check4ExceptionReport(outputData);
136 outputData = artifact.advance(this.readDocument(advanceDocument), cc); 137 outputData = artifact.advance(this.readDocument(advanceDocument), cc);
137 // this.writeDocument2Log(outputData); 138 // this.writeDocument2Log(outputData);
138 this.check4ExceptionReport(outputData); 139 this.check4ExceptionReport(outputData);

http://dive4elements.wald.intevation.org