cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r607736 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java
Date Mon, 31 Dec 2007 14:52:23 GMT
Author: joerg
Date: Mon Dec 31 06:52:21 2007
New Revision: 607736

URL: http://svn.apache.org/viewvc?rev=607736&view=rev
Log:
let's see if this fixes the NPE (http://marc.info/?l=xml-cocoon-dev&m=119910888817794&w=4)

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java?rev=607736&r1=607735&r2=607736&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java
Mon Dec 31 06:52:21 2007
@@ -64,7 +64,9 @@
         Datatype datatype = this.datatypeManager.createDatatype(datatypeElement, false);
         FlowJXPathSelectionList list = new FlowJXPathSelectionList(processInfoProvider, "beans",
"key", "value", datatype,null,false,null,false);
         DOMBuilder dest = new DOMBuilder();
+        dest.startDocument();
         list.generateSaxFragment(dest, Locale.ENGLISH);
+        dest.endDocument();
         Source expectedSource = new ResourceSource("resource://org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.dest.xml");
         Document expected = this.parser.parse(expectedSource.getInputStream());
         Document destDocument = dest.getDocument();
@@ -91,7 +93,9 @@
         Datatype datatype = this.datatypeManager.createDatatype(datatypeElement, false);
         FlowJXPathSelectionList list = new FlowJXPathSelectionList(processInfoProvider, "beans",
"key", "value", datatype,null,false,null,false);
         DOMBuilder dest = new DOMBuilder();
+        dest.startDocument();
         list.generateSaxFragment(dest, Locale.ENGLISH);
+        dest.endDocument();
         Source expectedSource = new ResourceSource("resource://org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCaseWithNull.dest.xml");
         Document expected = this.parser.parse(expectedSource.getInputStream());
         Document destDocument = dest.getDocument();



Mime
View raw message