Mercurial > dive4elements > gnv-client
changeset 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 | f7038820df2e |
children | b2d2b36b20a0 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCaseBase.java |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Mon Jan 11 00:29:45 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Jan 11 15:26:24 2010 +0000 @@ -1,3 +1,10 @@ +2010-01-11 Tim Englich <tim.englich@intevation.de> + + * src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCaseBase.java (readDocument): + Set NameSpaceAware to true to get the Unittests work again. + The Out-Calls doesn't work jet!!! + + 2010-01-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> * pom.xml: Introduced dependency to GeoTools 2.4.5 (maybe a bit too old)
--- a/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCaseBase.java Mon Jan 11 00:29:45 2010 +0000 +++ b/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCaseBase.java Mon Jan 11 15:26:24 2010 +0000 @@ -88,6 +88,7 @@ try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory .newInstance(); + docBuilderFactory.setNamespaceAware(true); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); returnValue = docBuilder.parse(new File(fileName)); } catch (ParserConfigurationException e) { @@ -130,7 +131,7 @@ String feedDocument, String advanceDocument, Document describeDocument) throws Exception { Document outputData = artifact.describe(describeDocument,cc); -// this.writeDocument2Log(outputData); +// this.writeDocument2Log(outputData); outputData = artifact.feed(this.readDocument(feedDocument), cc); this.check4ExceptionReport(outputData); outputData = artifact.advance(this.readDocument(advanceDocument), cc);