commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Altenhofen <Michael.Altenho...@web.de>
Subject Re: [jira] Commented: (JELLY-156) tags.xmlunit: body not correctly parsed
Date Thu, 21 Jul 2005 18:10:17 GMT

Hi Paul,

I assume your example is "too easy" because the XML snipplet is already included verbatim.
The problem had to do with the fact that 
the <xu:actual> piece was produced by a call to another command. That's why I had to
change the parseBody method.

Regards

Michael

"Paul Libbrecht (JIRA)" <commons-dev@jakarta.apache.org> schrieb am 19.07.05 20:51:13:
> 
>     [ http://issues.apache.org/jira/browse/JELLY-156?page=comments#action_12316147 ]

> 
> Paul Libbrecht commented on JELLY-156:
> --------------------------------------
> 
> Can you reproduce this with the current svn snapshot ?
> I have tried the following which is working:
> 
> 	<xu:assertDocumentsEqual expected="blop.xml">
> 		<xu:actual><blop/></xu:actual>
> 	</xu:assertDocumentsEqual>
> 
> (with blop.xml containing exactly <blop/>)
> 
> I am suspecting that something happened with the soap one...
> Maybe outputting the soap output to a file first than re-outputting it using x:copyOf
would help in order to see the soap response ?
> 
> thanks
> 
> paul
> 
> > tags.xmlunit: body not correctly parsed
> > ---------------------------------------
> >
> >          Key: JELLY-156
> >          URL: http://issues.apache.org/jira/browse/JELLY-156
> >      Project: jelly
> >         Type: Bug
> >     Reporter: Michael Altenhofen
> 
> >
> > Remark: I'm assigning this to "Unknown" component since I cannot select tags.xmlunit.
> > Similar to the probelm described for the xml tag lib, the xmlunit tag lib doesn't
correctly parse bodies.
> > E.g., with the current version (1.6) of ParseTagSupport I can't do the following:
> > [...]
> >    <xu:assertDocumentsEqual expected="result.xml">
> >      <xu:actual>
> >        <soap:invoke endpoint="${endpoint}" namespace="${namespace}" method="${method}">${params}</soap:invoke>
> >      </xu:actual>
> >    </xu:assertDocumentsEqual>   
> > [...]
> > The result produced by the soap invoke call will be transformed into an empty document.
> > Changing the method body of parseBody to
> >         return parseText(getBodyText(false));
> > does the trick.
> > This issue has also been posted via bugzilla (BUG #31544), but I've been adviced
to post it here again.
> 
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
> 


_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail k├Ânnen Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message