commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: [Jelly] XmlUnit Tag - NoSuchMethodError
Date Sun, 15 Dec 2002 22:07:04 GMT
This looks like the old 1.4/1.3 StringBuffer.append(StringBuffer) 
hassle....
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


"Michael Rettig" <mrettig@homemail.com> wrote on 15/12/2002 08:00:36 AM:

> Is anyone else seeing this same error? I emailed the lead developer 
> of XMLUnit, and he said it was due to a difference between JUnit 3.7
> and 3.8. However, I've tried it with both, and it still doesn't work. 
> 
> To test just change the xmlunit jellyunit suite to actually test 
> what exception is thrown, and not just test that any exception is 
> throws (as I've done below).
> 
> Thanks,
> 
> Mike Rettig
> 
> ----- Original Message -----
> From: "Michael Rettig" <mrettig@homemail.com>
> > I'm getting this error when trying to compare two xml documents.
> > 
> > java.lang.NoSuchMethodError
> >     at org.custommonkey.xmlunit.Diff.appendMessage(Unknown Source)
> >     at org.custommonkey.xmlunit.Diff.toString(Unknown Source)
> >     at org.apache.commons.jelly.tags.xmlunit.
> AssertDocumentsEqualTag.doTag(AssertDocumentsEqualTag.java:119)
> >     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
> >     at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
> >     at org.apache.commons.jelly.tags.junit.CaseTag$1.
> runTest(CaseTag.java:105)
> > 
> > Here is the test. I updated one of the XmlUnit tags to include 
> support for the new assertThrows tags. 
> > 
> >    <test:case name="differentDocuments">
> >       <x:parse var="doc1">
> >          <testDoc1/>
> >       </x:parse>
> >       <x:parse var="doc2">
> >          <testDoc2/>
> >       </x:parse>
> > 
> >       <test:assertThrows 
expected="junit.framework.AssertionFailedError">
> >          <xu:assertDocumentsEqual actual="${doc1}" 
expected="${doc2}"/>
> >       </test:assertThrows>
> >    </test:case>
> 
> -- 
> __________________________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
> 
> Meet Singles
> http://corp.mail.com/lavalife
> 
> 
> --
> To unsubscribe, e-mail: 
<mailto:commons-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:commons-user-help@jakarta.apache.org>
> 

> ForwardSourceID:NT00099B0A 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message